Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 095521b2 authored by Alexandra Gherghina's avatar Alexandra Gherghina Committed by Android (Google) Code Review
Browse files

Merge "Update sync state immediately after accounts are shown" into lmp-mr1-dev

parents 2555e5f1 6002ff8d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;