am 3c6ac75c: Merge "Fix messaging for sync now feature, when no account is selected"
* commit '3c6ac75c48e0f57d389305c9c22a3be960682ed2': Fix messaging for sync now feature, when no account is selectedmain
commit
45110a7bcf
|
@ -158,10 +158,10 @@ public final class AccountsSettingsFragment extends SubScreenFragment {
|
||||||
final String currentAccount = getCurrentlySelectedAccount();
|
final String currentAccount = getCurrentlySelectedAccount();
|
||||||
if (currentAccount == null) {
|
if (currentAccount == null) {
|
||||||
syncNowPreference.setEnabled(false);
|
syncNowPreference.setEnabled(false);
|
||||||
syncNowPreference.setSummary(R.string.sync_now_summary);
|
syncNowPreference.setSummary(R.string.sync_now_summary_disabled_signed_out);
|
||||||
} else {
|
} else {
|
||||||
syncNowPreference.setEnabled(true);
|
syncNowPreference.setEnabled(true);
|
||||||
syncNowPreference.setSummary(R.string.sync_now_summary_disabled_signed_out);
|
syncNowPreference.setSummary(R.string.sync_now_summary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue