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:
Amith Yamasani
2010-12-09 11:22:15 -08:00
parent 9f02357a82
commit 74402cfe4e

View File

@@ -194,6 +194,7 @@ public abstract class PreferenceFragment extends Fragment implements
public void onDestroy() {
super.onDestroy();
mPreferenceManager.dispatchActivityDestroy();
mPreferenceManager.setOnPreferenceTreeClickListener(null);
}
@Override