summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/dashboard
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-05-15 19:32:39 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2014-05-15 19:32:39 -0700
commita8072fa6e009d5284bfedfcffcf5582934d9532b (patch)
treeb906b1c3093b7e0037e461721bc5c69d4a16ebec /src/com/android/settings/dashboard
parent593455cef5fca5103435f9e7aada0304e6cb272c (diff)
downloadpackages_apps_Settings-a8072fa6e009d5284bfedfcffcf5582934d9532b.zip
packages_apps_Settings-a8072fa6e009d5284bfedfcffcf5582934d9532b.tar.gz
packages_apps_Settings-a8072fa6e009d5284bfedfcffcf5582934d9532b.tar.bz2
Fix bug 14990524 Add account does not refresh the list of accounts in the Dashboard
- unregister the OnAccountsUpdateListener in Fragment.onDestroy() instead of in Fragment.onStop() Change-Id: I07c92f85bb6efb34771d93158f00b60d93f4c90b
Diffstat (limited to 'src/com/android/settings/dashboard')
-rw-r--r--src/com/android/settings/dashboard/DashboardSummary.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/dashboard/DashboardSummary.java b/src/com/android/settings/dashboard/DashboardSummary.java
index 6cd6d7a..bd4b254 100644
--- a/src/com/android/settings/dashboard/DashboardSummary.java
+++ b/src/com/android/settings/dashboard/DashboardSummary.java
@@ -131,8 +131,8 @@ public class DashboardSummary extends Fragment implements OnAccountsUpdateListen
}
@Override
- public void onStop() {
- super.onStop();
+ public void onDestroy() {
+ super.onDestroy();
if (mAccountListenerAdded) {
AccountManager.get(getActivity()).removeOnAccountsUpdatedListener(this);