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 5a2668d commit aa749c9
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,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 aa749c9

Please sign in to comment.