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
This commit is contained in:
Fabrice Di Meglio
2014-05-15 19:32:39 -07:00
parent 593455cef5
commit a8072fa6e0

View File

@@ -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);