am 095521b2: Merge "Update sync state immediately after accounts are shown" into lmp-mr1-dev

* commit '095521b2874b38d2de0d9dd5e4a1a70e628c58bb':
  Update sync state immediately after accounts are shown
This commit is contained in:
Alexandra Gherghina
2014-11-10 10:19:12 +00:00
committed by Android Git Automerger

View File

@@ -104,6 +104,7 @@ public class ManageAccountsSettings extends AccountPreferenceBase
mAuthenticatorHelper.listenToAccountUpdates();
updateAuthDescriptions();
showAccountsIfNeeded();
showSyncState();
}
@Override
@@ -234,6 +235,10 @@ public class ManageAccountsSettings extends AccountPreferenceBase
showSyncState();
}
/**
* Shows the sync state of the accounts. Note: it must be called after the accounts have been
* loaded, @see #showAccountsIfNeeded().
*/
private void showSyncState() {
// Catch any delayed delivery of update messages
if (getActivity() == null || getActivity().isFinishing()) return;