Lines Matching refs:listener
134 for (OnSharedPreferenceChangeListener listener : mSharedPreferenceListeners) {
135 preferences.registerOnSharedPreferenceChangeListener(listener);
153 for (OnSharedPreferenceChangeListener listener : mSharedPreferenceListeners) {
154 preferences.unregisterOnSharedPreferenceChangeListener(listener);
178 final OnSettingChangedListener listener) {
183 listener.onSettingChanged(SettingsManager.this, key);
192 public void addListener(final OnSettingChangedListener listener) {
194 if (listener == null) {
198 if (mListeners.contains(listener)) {
202 mListeners.add(listener);
204 getSharedPreferenceListener(listener);
218 * listener has been set.
220 public void removeListener(OnSettingChangedListener listener) {
222 if (listener == null) {
226 if (!mListeners.contains(listener)) {
230 int index = mListeners.indexOf(listener);
231 mListeners.remove(listener);
252 for (OnSharedPreferenceChangeListener listener : mSharedPreferenceListeners) {
253 mDefaultPreferences.unregisterOnSharedPreferenceChangeListener(listener);
256 mCustomPreferences.unregisterOnSharedPreferenceChangeListener(listener);