|
@@ -124,7 +124,7 @@ fun ReadBookRouteScreen(
|
|
|
host: ReadBookRouteHost,
|
|
host: ReadBookRouteHost,
|
|
|
controller: ReadBookController,
|
|
controller: ReadBookController,
|
|
|
onEffectsReady: () -> Unit = {},
|
|
onEffectsReady: () -> Unit = {},
|
|
|
- onOpenSearch: (word: String?, bookUrl: String) -> Unit = { _, _ -> },
|
|
|
|
|
|
|
+ onOpenSearch: (word: String?, bookUrl: String, autoFocus: Boolean) -> Unit = { _, _, _ -> },
|
|
|
onOpenVoiceCasting: (bookUrl: String) -> Unit = {},
|
|
onOpenVoiceCasting: (bookUrl: String) -> Unit = {},
|
|
|
onOpenTtsEnginesAndVoices: () -> Unit = {},
|
|
onOpenTtsEnginesAndVoices: () -> Unit = {},
|
|
|
onOpenTtsCache: () -> Unit = {},
|
|
onOpenTtsCache: () -> Unit = {},
|
|
@@ -366,7 +366,7 @@ fun ReadBookRouteScreen(
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
is ReadBookEffect.OpenSearchActivity -> {
|
|
is ReadBookEffect.OpenSearchActivity -> {
|
|
|
- onOpenSearch(effect.word, effect.bookUrl)
|
|
|
|
|
|
|
+ onOpenSearch(effect.word, effect.bookUrl, effect.autoFocus)
|
|
|
}
|
|
}
|
|
|
is ReadBookEffect.OpenBookVoiceCasting -> {
|
|
is ReadBookEffect.OpenBookVoiceCasting -> {
|
|
|
onOpenVoiceCasting(effect.bookUrl)
|
|
onOpenVoiceCasting(effect.bookUrl)
|