diff --git a/app/core/src/main/java/com/fsck/k9/mailstore/MessageStore.kt b/app/core/src/main/java/com/fsck/k9/mailstore/MessageStore.kt index 9294ac736f5ec052342cde7cf7d8c772f3f87deb..75aeefed38f264f1f76ed4a464b331c51cd92b29 100644 --- a/app/core/src/main/java/com/fsck/k9/mailstore/MessageStore.kt +++ b/app/core/src/main/java/com/fsck/k9/mailstore/MessageStore.kt @@ -177,7 +177,7 @@ interface MessageStore { fun getDisplayFolders(displayMode: FolderMode, outboxFolderId: Long?, mapper: FolderMapper): List /** - * Check if all given folders are included in the Unified Inbox. + * Check if all given folders are included in the All Inboxes. */ fun areAllIncludedInUnifiedInbox(folderIds: Collection): Boolean diff --git a/app/core/src/main/java/com/fsck/k9/search/LocalSearch.java b/app/core/src/main/java/com/fsck/k9/search/LocalSearch.java index 52f23ef4a9ae8851437b1343c8e283435565359a..59e400cbba1535e267c41abdb208c8c8dad53e10 100644 --- a/app/core/src/main/java/com/fsck/k9/search/LocalSearch.java +++ b/app/core/src/main/java/com/fsck/k9/search/LocalSearch.java @@ -83,7 +83,7 @@ public class LocalSearch implements SearchSpecification { // Public manipulation methods /////////////////////////////////////////////////////////////// /** - * Set the ID of the search. This is used to identify a unified inbox + * Set the ID of the search. This is used to identify a All Inboxes * search * * @param id ID to set diff --git a/app/core/src/main/res/values/arrays_account_settings_values.xml b/app/core/src/main/res/values/arrays_account_settings_values.xml index 1946f623a03e1fff005bc7aa5db6aac2c45658d7..b43b3c62256b5bbf4ace1e9dd0c33e7deb925087 100644 --- a/app/core/src/main/res/values/arrays_account_settings_values.xml +++ b/app/core/src/main/res/values/arrays_account_settings_values.xml @@ -3,25 +3,7 @@ - 0xFFFFB300 - 0xFFFB8C00 - 0xFFF4511E - 0xFFE53935 - - 0xFFC0CA33 - 0xFF7CB342 - 0xFF388E3C - 0xFF00897B - - 0xFF00ACC1 - 0xFF039BE5 - 0xFF1976D2 - 0xFF3949AB - - 0xFFE91E63 - 0xFF8E24AA - 0xFF5E35B1 - 0xFF455A64 + 0xFF0086FF diff --git a/app/core/src/main/res/values/arrays_drawer.xml b/app/core/src/main/res/values/arrays_drawer.xml index c83c36f89ab1d8c2ed210079621e357b81a78ce5..d03c56fe89846aa0875ba2252f6acf49b09d9da0 100644 --- a/app/core/src/main/res/values/arrays_drawer.xml +++ b/app/core/src/main/res/values/arrays_drawer.xml @@ -3,25 +3,7 @@ - 0xFFFFB300 - 0xFFFF9800 - 0xFFFF7043 - 0xFFEF5350 - - 0xFFC0CA33 - 0xFF7CB342 - 0xFF4CAF50 - 0xFF4DB6AC - - 0xFF00ACC1 - 0xFF03A9F4 - 0xFF42A5F5 - 0xFF9FA8DA - - 0xFFF48FB1 - 0xFFCE93D8 - 0xFFB39DDB - 0xFF90A4AE + 0xFF5DB2FF diff --git a/app/core/src/test/java/com/fsck/k9/TestCoreResourceProvider.kt b/app/core/src/test/java/com/fsck/k9/TestCoreResourceProvider.kt index d13be3af8afb9a10c3613b3ba3b97f52f7f7c8a5..b3c9c595f231a7c5ae60ff78a80573684905dc11 100644 --- a/app/core/src/test/java/com/fsck/k9/TestCoreResourceProvider.kt +++ b/app/core/src/test/java/com/fsck/k9/TestCoreResourceProvider.kt @@ -26,7 +26,7 @@ class TestCoreResourceProvider : CoreResourceProvider { override fun replyHeader(sender: String) = "$sender wrote:" override fun replyHeader(sender: String, sentDate: String) = "On $sentDate, $sender wrote:" - override fun searchUnifiedInboxTitle() = "Unified Inbox" + override fun searchUnifiedInboxTitle() = "All Inboxes" override fun searchUnifiedInboxDetail() = "All messages in unified folders" override fun outboxFolderName() = "Outbox" diff --git a/app/k9mail/src/main/res/layout/message_list_widget_layout.xml b/app/k9mail/src/main/res/layout/message_list_widget_layout.xml index af5b9a546e0a10e266bbb97045e31fe1f3d95ecf..49033130f467cd73f1ad23fb0e0b6ef8f86194d8 100644 --- a/app/k9mail/src/main/res/layout/message_list_widget_layout.xml +++ b/app/k9mail/src/main/res/layout/message_list_widget_layout.xml @@ -23,7 +23,7 @@ android:paddingTop="12dp" android:textSize="20sp" android:textColor="@color/message_list_widget_header_text" - tools:text="Unified Inbox" /> + tools:text="All Inboxes" /> - val index = DEFAULT_COLORS.indexOf(color) - if (index != -1) index else DEFAULT_COLORS.size - } ?: error("availableColors must not be empty") + return accountColors[0]; } companion object { diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt b/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt index f0223fbaffd1a3720dbe2e939504fe6015ea461b..06908f3dd0e7c29c5a13522d7fb212aa5d873342 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt @@ -389,14 +389,14 @@ open class MessageList : private fun decodeExtras(intent: Intent): Boolean { val launchData = decodeExtrasToLaunchData(intent) - // If Unified Inbox was disabled show default account instead + // If All Inboxes was disabled show default account instead val search = if (launchData.search.isUnifiedInbox && !K9.isShowUnifiedInbox) { createDefaultLocalSearch() } else { launchData.search } - // If no account has been specified, keep the currently active account when opening the Unified Inbox + // If no account has been specified, keep the currently active account when opening the All Inboxes val account = launchData.account ?: account?.takeIf { launchData.search.isUnifiedInbox } ?: search.firstAccount() @@ -1639,7 +1639,7 @@ open class MessageList : drawer.selectAccount(account!!.uuid) when { singleFolderMode -> drawer.selectFolder(search!!.folderIds[0]) - // Don't select any item in the drawer because the Unified Inbox is displayed, but not listed in the drawer + // Don't select any item in the drawer because the All Inboxes is displayed, but not listed in the drawer search!!.id == SearchAccount.UNIFIED_INBOX && !K9.isShowUnifiedInbox -> drawer.deselect() search!!.id == SearchAccount.UNIFIED_INBOX -> drawer.selectUnifiedInbox() else -> drawer.deselect() diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt index 35982a999c9d6984267f6fe177115508f63a194e..a2976bb1c5ee32eedf8c6e65d9966e7ce6385049 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt @@ -173,6 +173,7 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K private fun configureAccountHeader() { headerView.headerBackground = ImageHolder(R.drawable.header_background) + headerView.onlyMainProfileImageVisible = true headerView.onAccountHeaderListener = { _, profile, _ -> val account = (profile as ProfileDrawerItem).tag as Account @@ -321,7 +322,7 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K foldersViewModel.loadFolders(account) } - // Account can be null to refresh all (unified inbox or account list). + // Account can be null to refresh all (All Inboxes or account list). swipeRefreshLayout.setOnRefreshListener { val accountToRefresh = if (headerView.selectionListShown) null else account messagingController.checkMail( @@ -486,7 +487,7 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K } return DrawerColors( accentColor = baseColor, - selectedColor = baseColor.and(0xffffff).or(0x22000000) + selectedColor = ResourcesCompat.getColor(resources, R.color.color_drawer_selected_background, null) ) } diff --git a/app/ui/legacy/src/main/res/drawable/header_background.xml b/app/ui/legacy/src/main/res/drawable/header_background.xml index 401e975603965ce80b851f245be45bab39719cf4..a85d95e6a7fcd79048f74d97c1933055a31817d2 100644 --- a/app/ui/legacy/src/main/res/drawable/header_background.xml +++ b/app/ui/legacy/src/main/res/drawable/header_background.xml @@ -1,6 +1,6 @@ - + diff --git a/app/ui/legacy/src/main/res/raw/changelog_master.xml b/app/ui/legacy/src/main/res/raw/changelog_master.xml index 0dc11a4e17f786080407bda3ee564e165275f474..7ccc0dc42069a076354ad8e8927021f4df3fab23 100644 --- a/app/ui/legacy/src/main/res/raw/changelog_master.xml +++ b/app/ui/legacy/src/main/res/raw/changelog_master.xml @@ -42,7 +42,7 @@ Only remove notifications for messages currently being displayed - Open message from notification in Unified Inbox if possible + Open message from notification in All Inboxes if possible Fixed stale message count for the Outbox folder Fixed search field not working properly when using a hardware keyboard Updated translations @@ -100,7 +100,7 @@ Added support for entering Reply-To addresses when composing a message - Display the unread message count for the Unified Inbox in the drawer + Display the unread message count for the All Inboxes in the drawer Fixed crash when using the split-screen view Hide notification category settings on Android versions that don't support them Update the sync notification for an account instead of adding and removing it for each folder @@ -142,7 +142,7 @@ Fixed a bug that was triggered when Push was enabled, but the server didn't support Push. If you've noticed high battery drain, this was probably it - Added support for archive and spam actions in the Unified Inbox + Added support for archive and spam actions in the All Inboxes Fixed notification sounds/vibration. Sometimes notifications were audible when they shouldn't have been, sometimes the other way around Display the star of starred messages in yellow Don't show archive/spam action when no such folder is configured @@ -240,7 +240,7 @@ Updated translations - Fixed display bug when opening Unified Inbox from a launcher shortcut + Fixed display bug when opening All Inboxes from a launcher shortcut Fixed functionality to download and save linked images on Android 10+ Moved 'show headers' functionality to a separate screen Added save button to 'edit identity' screen @@ -251,7 +251,7 @@ Fixed crash when trying to compose a message Fixed bug that could have lead to an empty email being sent Fixed bug where refresh indicator in drawer disappeared too early - Back button now opens Unified Inbox before exiting the app + Back button now opens All Inboxes before exiting the app Added translations: Belarusian, British English @@ -259,7 +259,7 @@ Added support for using a client certificate and a password at the same time - Unified Inbox is now displayed on top of the folder list in the drawer + All Inboxes is now displayed on top of the folder list in the drawer Improved the sort order of email addresses in the auto-complete popup Fixed a bug when parsing recipient email addresses in the "compose" screen Fixed bug where the folder list wasn't fetched from the server @@ -412,7 +412,7 @@ Fixed theme issues in some settings screens - Unified Inbox is now opened by default (if enabled) + All Inboxes is now opened by default (if enabled) Back button now opens default folder before exiting the app Fixed bug where the input area for the message body wasn't growing properly Keep read position when switching apps @@ -457,8 +457,8 @@ Use account color as accent color in drawer - Removed setting 'Start in Unified Inbox' - Fixed bug that displayed folders when the Unified Inbox was selected + Removed setting 'Start in All Inboxes' + Fixed bug that displayed folders when the All Inboxes was selected Fixed bug where work was accidentally done in the main thread Updated translations @@ -882,7 +882,7 @@ Updated Greek translation - Checking mail from the Unified Inbox is now supported + Checking mail from the All Inboxes is now supported Added "mark all as read" to the menu of the message list Added sort by sender Simplified status icons in the message list diff --git a/app/ui/legacy/src/main/res/values-in/strings.xml b/app/ui/legacy/src/main/res/values-in/strings.xml index eabb8875e33c9e3c73fcbc4c7e5b54eef09b7945..6754e698deca9a4a3f27c0b25e50e657b25fb5a4 100644 --- a/app/ui/legacy/src/main/res/values-in/strings.xml +++ b/app/ui/legacy/src/main/res/values-in/strings.xml @@ -659,7 +659,7 @@ Inbox terpadu Semua pesan dalam folder terpadu Satukan - Semua pesan ditampilkan di Unified Inbox + Semua pesan ditampilkan di All Inboxes Folder untuk dicari Semua Bisa ditampilkan diff --git a/app/ui/legacy/src/main/res/values/colors.xml b/app/ui/legacy/src/main/res/values/colors.xml index e06953f0e810764d0897101e3124c26264073f5b..41d2f04c532d364fe9b46c2b761c6f7048952ff8 100644 --- a/app/ui/legacy/src/main/res/values/colors.xml +++ b/app/ui/legacy/src/main/res/values/colors.xml @@ -27,4 +27,6 @@ @lineageos.platform:color/color_default_secondary_text @lineageos.platform:color/color_default_divider @lineageos.platform:color/color_default_gray2 + + #145DB2FF diff --git a/app/ui/legacy/src/main/res/values/strings.xml b/app/ui/legacy/src/main/res/values/strings.xml index b66365e8c2b4547cee550e1e744d355bc5e631d6..71ba646f069835e561ae63b1bd753c40d96ccf87 100644 --- a/app/ui/legacy/src/main/res/values/strings.xml +++ b/app/ui/legacy/src/main/res/values/strings.xml @@ -786,14 +786,14 @@ In message views In list views - Show Unified Inbox + Show All Inboxes Show starred count - Unified Inbox + All Inboxes All messages in unified folders Unify - All messages are shown in Unified Inbox + All messages are shown in All Inboxes Folders to search All @@ -929,7 +929,7 @@ Show unread count for… Account The account for which the unread count should be displayed - Unified Inbox + All Inboxes Folder count Display the unread count of only a single folder Folder diff --git a/app/ui/legacy/src/main/res/xml/account_settings.xml b/app/ui/legacy/src/main/res/xml/account_settings.xml index a0270b39ecdbcaf1f2c67b62edc7db5f35f941f1..79c14ba10178488f944f16635e598b536223e457 100644 --- a/app/ui/legacy/src/main/res/xml/account_settings.xml +++ b/app/ui/legacy/src/main/res/xml/account_settings.xml @@ -20,7 +20,8 @@ android:key="chip_color" android:summary="@string/account_settings_color_summary" android:title="@string/account_settings_color_label" - app:pref_colors="@array/account_colors" /> + app:pref_colors="@array/account_colors" + app:isPreferenceVisible="false" /> diff --git a/e-ui-sdk.jar b/e-ui-sdk.jar index db9993a55feec3762092011c64b42be59fa8e035..aabc9df7dba4a49b4ab2716fd0dcaf617a636b0c 100644 Binary files a/e-ui-sdk.jar and b/e-ui-sdk.jar differ diff --git a/fastlane/metadata/android/en-US/changelogs/29009.txt b/fastlane/metadata/android/en-US/changelogs/29009.txt index dd7d27ebaacad00a7d6a50afcb155ca6907fad04..5c2c25aa3340dd186fa1e3d41d2c210754ed23b9 100644 --- a/fastlane/metadata/android/en-US/changelogs/29009.txt +++ b/fastlane/metadata/android/en-US/changelogs/29009.txt @@ -1,5 +1,5 @@ - Only remove notifications for messages currently being displayed -- Open message from notification in Unified Inbox if possible +- Open message from notification in All Inboxes if possible - Fixed stale message count for the Outbox folder - Fixed search field not working properly when using a hardware keyboard - Updated translations diff --git a/fastlane/metadata/android/en-US/full_description.txt b/fastlane/metadata/android/en-US/full_description.txt index 6853457f905291318c268347481d1b198e639a85..732e4f72723d080f64ed725d4848a7107a71cfd2 100644 --- a/fastlane/metadata/android/en-US/full_description.txt +++ b/fastlane/metadata/android/en-US/full_description.txt @@ -3,7 +3,7 @@ K-9 Mail is an open source email client that works with basically every email pr Features * supports multiple accounts -* Unified Inbox +* All Inboxes * privacy-friendly (no tracking whatsoever, only connects to your email provider) * automatic background synchronization or push notifications * local and server-side search