am ba1eba04
: am 095521b2
: Merge "Update sync state immediately after accounts are shown" into lmp-mr1-dev
* commit 'ba1eba04cc52fbf941f9d6977f47aafcb4b80993': Update sync state immediately after accounts are shown
This commit is contained in:
committed by
Android Git Automerger
commit
ac62d70080
@@ -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