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

Commit 6002ff8d authored by Alexandra Gherghina's avatar Alexandra Gherghina
Browse files

Update sync state immediately after accounts are shown

Bug: 18251114
Change-Id: I13791ff3979ce862e11989a3819f2356be32a0f4
parent c66eb698
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;