From 51c3d6ceaf7515997b27ad33a6b2d5b0c53ce85b Mon Sep 17 00:00:00 2001 From: cketti Date: Tue, 14 Feb 2023 17:23:15 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Remove=20"Send=E2=80=A6"=20submenu=20from?= =?UTF-8?q?=20message=20view=20toolbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All of the items are now part of the menu displayed in the message header view. --- .../k9/ui/messageview/MessageViewFragment.kt | 2 +- .../src/main/res/menu/message_list_option.xml | 29 ------------------- .../main/res/menu/single_message_options.xml | 5 +++- app/ui/legacy/src/main/res/values/strings.xml | 1 - 4 files changed, 5 insertions(+), 32 deletions(-) diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/MessageViewFragment.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/MessageViewFragment.kt index 9e38a15c3..73f3d5a4e 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/MessageViewFragment.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/MessageViewFragment.kt @@ -279,7 +279,6 @@ class MessageViewFragment : } menu.findItem(R.id.move_to_drafts).isVisible = isOutbox - menu.findItem(R.id.single_message_options).isVisible = true menu.findItem(R.id.unsubscribe).isVisible = canMessageBeUnsubscribed() menu.findItem(R.id.show_headers).isVisible = true menu.findItem(R.id.compose).isVisible = true @@ -396,6 +395,7 @@ class MessageViewFragment : R.id.reply_all -> onReplyAll() R.id.forward -> onForward() R.id.forward_as_attachment -> onForwardAsAttachment() + R.id.edit_as_new_message -> onEditAsNewMessage() R.id.share -> onSendAlternate() else -> error("Missing handler for reply menu item $itemId") } diff --git a/app/ui/legacy/src/main/res/menu/message_list_option.xml b/app/ui/legacy/src/main/res/menu/message_list_option.xml index de9fdba7c..01f82e245 100644 --- a/app/ui/legacy/src/main/res/menu/message_list_option.xml +++ b/app/ui/legacy/src/main/res/menu/message_list_option.xml @@ -79,35 +79,6 @@ android:visible="false" app:showAsAction="never" /> - - - - - - - - - - - - + - \ No newline at end of file + diff --git a/app/ui/legacy/src/main/res/values/strings.xml b/app/ui/legacy/src/main/res/values/strings.xml index 43692e4ac..e17f613af 100644 --- a/app/ui/legacy/src/main/res/values/strings.xml +++ b/app/ui/legacy/src/main/res/values/strings.xml @@ -111,7 +111,6 @@ Please submit bug reports, contribute new features and ask questions at Edit as new message Move Move to Drafts - Send… Refile… Done Discard From fbe7136109b5775d87e8b1d7b4fdd01eb7aa51f7 Mon Sep 17 00:00:00 2001 From: cketti Date: Tue, 14 Feb 2023 17:31:29 +0100 Subject: [PATCH 2/2] Remove unnecessary theme attribute --- app/ui/legacy/src/main/res/layout/message_view_header.xml | 2 +- app/ui/legacy/src/main/res/menu/message_list_option.xml | 1 - app/ui/legacy/src/main/res/values/attrs.xml | 1 - app/ui/legacy/src/main/res/values/themes.xml | 2 -- 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/ui/legacy/src/main/res/layout/message_view_header.xml b/app/ui/legacy/src/main/res/layout/message_view_header.xml index 2222a7c23..bd12c37c2 100644 --- a/app/ui/legacy/src/main/res/layout/message_view_header.xml +++ b/app/ui/legacy/src/main/res/layout/message_view_header.xml @@ -162,7 +162,7 @@ android:paddingHorizontal="12dp" app:layout_constraintEnd_toStartOf="@id/menu_overflow" app:layout_constraintTop_toTopOf="@+id/menu_overflow" - app:srcCompat="?iconActionSingleMessageOptions" /> + tools:srcCompat="@drawable/ic_reply_all" /> diff --git a/app/ui/legacy/src/main/res/values/attrs.xml b/app/ui/legacy/src/main/res/values/attrs.xml index 001cd401c..64503b603 100644 --- a/app/ui/legacy/src/main/res/values/attrs.xml +++ b/app/ui/legacy/src/main/res/values/attrs.xml @@ -29,7 +29,6 @@ - diff --git a/app/ui/legacy/src/main/res/values/themes.xml b/app/ui/legacy/src/main/res/values/themes.xml index 2a64b98cc..47fd88344 100644 --- a/app/ui/legacy/src/main/res/values/themes.xml +++ b/app/ui/legacy/src/main/res/values/themes.xml @@ -52,7 +52,6 @@ @drawable/ic_folder_magnify @drawable/ic_send @drawable/ic_cog - @drawable/ic_reply_all @drawable/ic_sort @drawable/ic_alert_octagon @drawable/ic_star @@ -215,7 +214,6 @@ @drawable/ic_folder_magnify @drawable/ic_send @drawable/ic_cog - @drawable/ic_reply_all @drawable/ic_sort @drawable/ic_alert_octagon @drawable/ic_star