Merge "Fix bug 14990524 Add account does not refresh the list of accounts in the Dashboard"
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 @@
}
@Override
- public void onStop() {
- super.onStop();
+ public void onDestroy() {
+ super.onDestroy();
if (mAccountListenerAdded) {
AccountManager.get(getActivity()).removeOnAccountsUpdatedListener(this);