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

This commit is contained in:
Jatin Matani 2014-10-08 23:40:26 +00:00 committed by Android (Google) Code Review
commit 3c6ac75c48

View File

@ -158,10 +158,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);
}
}