am ac62d700: am ba1eba04: am 095521b2: Merge "Update sync state immediately after accounts are shown" into lmp-mr1-dev
* commit 'ac62d70080140b8068e93ba43d3de167f5ac16d2': Update sync state immediately after accounts are shown
This commit is contained in:
committed by
Android Git Automerger
commit
513b2cb97e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user