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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user