Improve unread widget configuration UX

This commit is contained in:
cketti 2017-10-15 03:29:52 +02:00
parent 763d3f0886
commit f4b08dcf2f

View file

@ -126,7 +126,13 @@ public class UnreadWidgetConfiguration extends K9PreferenceActivity {
} }
private void handleChooseAccount(String accountUuid) { private void handleChooseAccount(String accountUuid) {
boolean userSelectedSameAccount = accountUuid.equals(selectedAccountUuid);
if (userSelectedSameAccount) {
return;
}
selectedAccountUuid = accountUuid; selectedAccountUuid = accountUuid;
selectedFolderName = null;
unreadFolder.setSummary(getString(R.string.unread_widget_folder_summary)); unreadFolder.setSummary(getString(R.string.unread_widget_folder_summary));
if (SearchAccount.UNIFIED_INBOX.equals(selectedAccountUuid) || if (SearchAccount.UNIFIED_INBOX.equals(selectedAccountUuid) ||
SearchAccount.ALL_MESSAGES.equals(selectedAccountUuid)) { SearchAccount.ALL_MESSAGES.equals(selectedAccountUuid)) {