RTEditor/src/main/java/com/onegravity/rteditor/RTManager.java
public void unregisterToolbar(RTToolbar toolbar) {
        mToolbars.remove(toolbar.getId());
        toolbar.removeToolbarListener();
        updateToolbarVisibility();
    }
public void unregisterToolbar(RTToolbar toolbar) {
        mToolbars.remove(toolbar.getId());
        toolbar.removeToolbarListener();
        updateToolbarVisibility();
    }
public void unregisterToolbar ( RTToolbar toolbar ) { mToolbars . remove ( toolbar . getId ( ) ) ; toolbar . removeToolbarListener ( ) ; updateToolbarVisibility ( ) ; }
Unregister a toolbar.
<p>
This method may be called before the component is destroyed to
stop any interaction with the toolbar. Not doing so may result
in (asynchronous) calls coming through when the Activity/Fragment
is already stopping its operation.
<p>
Must be called from the ui thread.
<p>
Important: calling this method is obsolete once the
onDestroy(boolean) is called

@param toolbar The toolbar to unregister.
Unregister a toolbar . <p > This method may be called before the component is destroyed to stop any interaction with the toolbar . Not doing so may result in ( asynchronous ) calls coming through when the Activity / Fragment is already stopping its operation . <p > Must be called from the ui thread . <p > Important : calling this method is obsolete once the onDestroy ( boolean ) is called