Improve unread widget configuration UX
This commit is contained in:
parent
763d3f0886
commit
f4b08dcf2f
1 changed files with 6 additions and 0 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue