From 2f035c3efa95a1f9252a5dd8afb0c0191d12cf31 Mon Sep 17 00:00:00 2001 From: Tuomas Airaksinen Date: Thu, 31 Aug 2023 16:34:16 +0300 Subject: [PATCH] Fix #2777 ("Paste" context menu item does not work when trying to paste content to bookmark note) --- .../net/bible/android/view/activity/page/BibleView.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/net/bible/android/view/activity/page/BibleView.kt b/app/src/main/java/net/bible/android/view/activity/page/BibleView.kt index d27cb5b821..5bc0b1274c 100644 --- a/app/src/main/java/net/bible/android/view/activity/page/BibleView.kt +++ b/app/src/main/java/net/bible/android/view/activity/page/BibleView.kt @@ -523,9 +523,12 @@ class BibleView(val mainBibleActivity: MainBibleActivity, } override fun onActionItemClicked(mode: ActionMode, item: MenuItem): Boolean { - val handled1 = onActionMenuItemClicked(mode, item) - if(handled1) stopSelection(true) - return handled1 + if(modalOpen) { + return callback.onActionItemClicked(mode, item) + } + val handled = onActionMenuItemClicked(mode, item) + if(handled) stopSelection(true) + return handled } override fun onDestroyActionMode(mode: ActionMode) {