From a8072fa6e009d5284bfedfcffcf5582934d9532b Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Thu, 15 May 2014 19:32:39 -0700 Subject: 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 --- src/com/android/settings/dashboard/DashboardSummary.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com') 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); -- cgit v1.1