Fix bug #15080198 Enabling developer options requires restart of settings to enter

- fix Dashboard categories refresh issue

Change-Id: I5bb7fc4a1410df8f5c2d2d13f7625a1ccc8893c3
This commit is contained in:
Fabrice Di Meglio
2014-05-19 19:51:31 -07:00
parent 28ffbd3ba7
commit 5f995727cc
2 changed files with 6 additions and 5 deletions

View File

@@ -75,8 +75,6 @@ public class DashboardSummary extends Fragment implements OnAccountsUpdateListen
mAuthHelper = ((SettingsActivity) context).getAuthenticatorHelper();
rebuildUI(getActivity());
return rootView;
}
@@ -121,13 +119,15 @@ public class DashboardSummary extends Fragment implements OnAccountsUpdateListen
}
@Override
public void onStart() {
super.onStart();
public void onResume() {
super.onResume();
if (!mAccountListenerAdded) {
AccountManager.get(getActivity()).addOnAccountsUpdatedListener(this, null, false);
mAccountListenerAdded = true;
}
rebuildCategories();
}
@Override