From 56f0452b71050cd5d548bbddc475aff3890573cd Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 24 Feb 2022 08:30:35 +0100 Subject: [PATCH] Changed context menu category/order --- app/src/main/java/eu/faircode/email/EditTextCompose.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EditTextCompose.java b/app/src/main/java/eu/faircode/email/EditTextCompose.java index d4935eb261..7a5b239b0f 100644 --- a/app/src/main/java/eu/faircode/email/EditTextCompose.java +++ b/app/src/main/java/eu/faircode/email/EditTextCompose.java @@ -94,10 +94,10 @@ public class EditTextCompose extends FixedEditText { public boolean onCreateActionMode(ActionMode mode, Menu menu) { try { if (undo_manager && can(android.R.id.undo)) - menu.add(Menu.CATEGORY_ALTERNATIVE, R.string.title_undo, 1, getTitle(R.string.title_undo)); + menu.add(Menu.CATEGORY_SECONDARY, R.string.title_undo, 1001, getTitle(R.string.title_undo)); if (undo_manager && can(android.R.id.redo)) - menu.add(Menu.CATEGORY_ALTERNATIVE, R.string.title_redo, 2, getTitle(R.string.title_redo)); - menu.add(Menu.CATEGORY_ALTERNATIVE, R.string.title_insert_line, 3, R.string.title_insert_line); + menu.add(Menu.CATEGORY_SECONDARY, R.string.title_redo, 1002, getTitle(R.string.title_redo)); + menu.add(Menu.CATEGORY_SECONDARY, R.string.title_insert_line, 1003, R.string.title_insert_line); } catch (Throwable ex) { Log.e(ex); }