android.support.v4.app.FragmentManager.OnBackStackChangedListener Java Examples

The following examples show how to use android.support.v4.app.FragmentManager.OnBackStackChangedListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FragmentManagerImpl.java    From letv with Apache License 2.0 5 votes vote down vote up
void reportBackStackChanged() {
    if (this.mBackStackChangeListeners != null) {
        for (int i = 0; i < this.mBackStackChangeListeners.size(); i++) {
            ((OnBackStackChangedListener) this.mBackStackChangeListeners.get(i)).onBackStackChanged();
        }
    }
}
 
Example #2
Source File: FragmentManagerImpl.java    From letv with Apache License 2.0 4 votes vote down vote up
public void addOnBackStackChangedListener(OnBackStackChangedListener listener) {
    if (this.mBackStackChangeListeners == null) {
        this.mBackStackChangeListeners = new ArrayList();
    }
    this.mBackStackChangeListeners.add(listener);
}
 
Example #3
Source File: FragmentManagerImpl.java    From letv with Apache License 2.0 4 votes vote down vote up
public void removeOnBackStackChangedListener(OnBackStackChangedListener listener) {
    if (this.mBackStackChangeListeners != null) {
        this.mBackStackChangeListeners.remove(listener);
    }
}