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

Commit f66a6a3b authored by Jatin Matani's avatar Jatin Matani
Browse files

Fix messaging for sync now feature, when no account is selected

Change-Id: I5e81b7a1eed9c2177ad3ddfa6c96c2b85c433766
parent 847735fd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -157,10 +157,10 @@ public final class AccountsSettingsFragment extends SubScreenFragment {
        final String currentAccount = getCurrentlySelectedAccount();
        if (currentAccount == null) {
            syncNowPreference.setEnabled(false);
            syncNowPreference.setSummary(R.string.sync_now_summary);
            syncNowPreference.setSummary(R.string.sync_now_summary_disabled_signed_out);
        } else {
            syncNowPreference.setEnabled(true);
            syncNowPreference.setSummary(R.string.sync_now_summary_disabled_signed_out);
            syncNowPreference.setSummary(R.string.sync_now_summary);
        }
    }