material/src/main/java/com/rey/material/util/ToolbarManager.java
public void unregisterOnToolbarGroupChangedListener(OnToolbarGroupChangedListener listener){
        for(int i = mListeners.size() - 1; i >= 0; i--){
            WeakReference<OnToolbarGroupChangedListener> ref = mListeners.get(i);
            if(ref.get() == null || ref.get() == listener)
                mListeners.remove(i);
        }
    }
/**
     * Unregister a listener.
     * @param listener
     */
Unregister a listener.
@param listener
Unregister a listener . @param listener
public void unregisterOnToolbarGroupChangedListener(OnToolbarGroupChangedListener listener){
        for(int i = mListeners.size() - 1; i >= 0; i--){
            WeakReference<OnToolbarGroupChangedListener> ref = mListeners.get(i);
            if(ref.get() == null || ref.get() == listener)
                mListeners.remove(i);
        }
    }
public void unregisterOnToolbarGroupChangedListener ( OnToolbarGroupChangedListener listener ) { for ( int i = mListeners . size ( ) - 1 ; i >= 0 ; i -- ) { WeakReference < OnToolbarGroupChangedListener > ref = mListeners . get ( i ) ; if ( ref . get ( ) == null || ref . get ( ) == listener ) mListeners . remove ( i ) ; } }
Unregister a listener.
Unregister a listener .