summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Powell <adamp@android.com>2013-07-12 22:07:04 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-07-12 22:07:04 +0000
commit4b8cc94cc67d760e724c56aee9301d1bcc2bbe89 (patch)
treeaf9887ef6a40d56a6383ea56b2d7e7e14658f87d
parentc5de9c3509e6f91f1a6fca4541c5a2dfc9878dcc (diff)
parent1ebf13ef20fea56f55094a3744c9813500a55b17 (diff)
downloadframeworks_base-4b8cc94cc67d760e724c56aee9301d1bcc2bbe89.zip
frameworks_base-4b8cc94cc67d760e724c56aee9301d1bcc2bbe89.tar.gz
frameworks_base-4b8cc94cc67d760e724c56aee9301d1bcc2bbe89.tar.bz2
Merge "PreferenceActivity should not leave message in looper when destroyed"
-rw-r--r--core/java/android/preference/PreferenceActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/preference/PreferenceActivity.java b/core/java/android/preference/PreferenceActivity.java
index 09ff7be..d4e85ed 100644
--- a/core/java/android/preference/PreferenceActivity.java
+++ b/core/java/android/preference/PreferenceActivity.java
@@ -895,6 +895,8 @@ public abstract class PreferenceActivity extends ListActivity implements
@Override
protected void onDestroy() {
+ mHandler.removeMessages(MSG_BIND_PREFERENCES);
+ mHandler.removeMessages(MSG_BUILD_HEADERS);
super.onDestroy();
if (mPreferenceManager != null) {