Skip to content

Commit

Permalink
Fix #2777 ("Paste" context menu item does not work when trying to pas…
Browse files Browse the repository at this point in the history
…te content to bookmark note)
  • Loading branch information
tuomas2 committed Aug 31, 2023
1 parent f505809 commit 2f035c3
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2f035c3

Please sign in to comment.