Skip to content

Commit

Permalink
Fix #2816 (Crash related to context menu (when modal open))
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Sep 7, 2023
1 parent 0bb0e9a commit 60e0137
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ class BibleView(val mainBibleActivity: MainBibleActivity,

private fun onPrepareActionMenu(mode: ActionMode, menu: Menu): Boolean {
Log.i(TAG, "onPrepareActionMode $menuPrepared ${currentSelection?.verseRange}")
if(modalOpen) return false

if(menuPrepared) {
mode.menu.clear()
Expand Down Expand Up @@ -631,7 +630,7 @@ class BibleView(val mainBibleActivity: MainBibleActivity,
}

override fun onActionItemClicked(mode: ActionMode, item: MenuItem): Boolean {
if(modalOpen || showSystem) {
if(showSystem || editingTextInJs) {
val rv = callback.onActionItemClicked(mode, item)
mode.finish()
return rv
Expand Down

0 comments on commit 60e0137

Please sign in to comment.