Skip to content

Commit

Permalink
Fix #2724 (Modal Speak button should jump to location)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Sep 14, 2023
1 parent 9fc0365 commit 952168c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ class BibleJavascriptInterface(
val singleKey = try {KeyUtil.getVerse(key)} catch (e: ClassCastException) {key}
val ordinalRange = OrdinalRange(ordinal, positiveOrNull(endOrdinal))
val bookAndKey = BookAndKey(singleKey, book, ordinalRange)
if(mainBibleActivity.speakControl.isSpeaking) {
mainBibleActivity.speakControl.pause(willContinueAfterThis = true, toast = false)
}
mainBibleActivity.speakControl.speakGeneric(bookAndKey)
}
}
Expand Down

0 comments on commit 952168c

Please sign in to comment.