Remove the OnItemClick listener when the fragment is destroyed.
Bug: 3228510 This probably fixes a lot of other monkey bugs in Settings.
This commit is contained in:
@@ -194,6 +194,7 @@ public abstract class PreferenceFragment extends Fragment implements
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
mPreferenceManager.dispatchActivityDestroy();
|
||||
mPreferenceManager.setOnPreferenceTreeClickListener(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user