From f4b08dcf2fc9a8b6a763666ed0694ec5f0c8ab0a Mon Sep 17 00:00:00 2001 From: cketti Date: Sun, 15 Oct 2017 03:29:52 +0200 Subject: [PATCH] Improve unread widget configuration UX --- .../com/fsck/k9/activity/UnreadWidgetConfiguration.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/k9mail/src/main/java/com/fsck/k9/activity/UnreadWidgetConfiguration.java b/k9mail/src/main/java/com/fsck/k9/activity/UnreadWidgetConfiguration.java index 5d1726ca8..7817d9794 100644 --- a/k9mail/src/main/java/com/fsck/k9/activity/UnreadWidgetConfiguration.java +++ b/k9mail/src/main/java/com/fsck/k9/activity/UnreadWidgetConfiguration.java @@ -126,7 +126,13 @@ public class UnreadWidgetConfiguration extends K9PreferenceActivity { } private void handleChooseAccount(String accountUuid) { + boolean userSelectedSameAccount = accountUuid.equals(selectedAccountUuid); + if (userSelectedSameAccount) { + return; + } + selectedAccountUuid = accountUuid; + selectedFolderName = null; unreadFolder.setSummary(getString(R.string.unread_widget_folder_summary)); if (SearchAccount.UNIFIED_INBOX.equals(selectedAccountUuid) || SearchAccount.ALL_MESSAGES.equals(selectedAccountUuid)) {