app/src/main/java/am/project/x/privateapi/viewtreeobserver/ViewTreeObserverPrivateApis.java
/**
     * Remove a previously installed internal insets computation callback
     *
     * @param listener The callback to remove
     * @throws IllegalStateException If {@link ViewTreeObserver#isAlive()} returns false
     * @see #addOnComputeInternalInsetsListener(ViewTreeObserver, Object)
     */
Remove a previously installed internal insets computation callback
@param listener The callback to remove
@throws IllegalStateException If  ViewTreeObserver#isAlive() returns false
@see #addOnComputeInternalInsetsListener(ViewTreeObserver, Object)
Remove a previously installed internal insets computation callback @param listener The callback to remove @throws IllegalStateException If ViewTreeObserver#isAlive () returns false @see #addOnComputeInternalInsetsListener ( ViewTreeObserver Object )
public boolean removeOnComputeInternalInsetsListener(ViewTreeObserver observer,
                                                         Object listener) {
        if (observer == null)
            return false;
        try {
            getDeclaredMethod(observer, "removeOnComputeInternalInsetsListener",
                    getInnerOnComputeInternalInsetsListenerClass())
                    .invoke(observer, listener);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
public boolean removeOnComputeInternalInsetsListener ( ViewTreeObserver observer , Object listener ) { if ( observer == null ) return false ; try { getDeclaredMethod ( observer , "removeOnComputeInternalInsetsListener" , getInnerOnComputeInternalInsetsListenerClass ( ) ) . invoke ( observer , listener ) ; return true ; } catch ( Exception e ) { return false ; } }
Remove a previously installed internal insets computation callback
 @param listener The callback to remove
 @throws IllegalStateException If {@link ViewTreeObserver#isAlive()} returns false
 @see #addOnComputeInternalInsetsListener(ViewTreeObserver, Object)
Remove a previously installed internal insets computation callback @param listener The callback to remove @throws IllegalStateException If { @link ViewTreeObserver#isAlive () } returns false @see #addOnComputeInternalInsetsListener ( ViewTreeObserver Object )