public final void addPreferenceFragmentListener ( @ NonNull final PreferenceFragmentListener listener ) { Condition . INSTANCE . ensureNotNull ( listener , "The listener may not be null" ) ; preferenceFragmentListeners . add ( listener ) ; }
Adds a new listener which should be notified when the currently shown preference fragment has been changed to the activity .