diff --git a/readium/navigators/media/common/src/main/java/org/readium/navigator/media/common/TextAwareMediaNavigator.kt b/readium/navigators/media/common/src/main/java/org/readium/navigator/media/common/TextAwareMediaNavigator.kt index f33613f80b..79075771fc 100644 --- a/readium/navigators/media/common/src/main/java/org/readium/navigator/media/common/TextAwareMediaNavigator.kt +++ b/readium/navigators/media/common/src/main/java/org/readium/navigator/media/common/TextAwareMediaNavigator.kt @@ -108,14 +108,14 @@ public interface TextAwareMediaNavigator< * * Does nothing if the current utterance is the first one. */ - public fun goToPreviousUtterance() + public fun skipToPreviousUtterance() /** * Jumps to the next utterance. * * Does nothing if the current utterance is the last one. */ - public fun goToNextUtterance() + public fun skipToNextUtterance() /** * Whether the current utterance has a previous one or is the first one. diff --git a/readium/navigators/media/tts/src/main/java/org/readium/navigator/media/tts/TtsNavigator.kt b/readium/navigators/media/tts/src/main/java/org/readium/navigator/media/tts/TtsNavigator.kt index 81ffbac521..ef5d3e2d33 100644 --- a/readium/navigators/media/tts/src/main/java/org/readium/navigator/media/tts/TtsNavigator.kt +++ b/readium/navigators/media/tts/src/main/java/org/readium/navigator/media/tts/TtsNavigator.kt @@ -208,11 +208,11 @@ public class TtsNavigator, player.go(publication.normalizeLocator(locator)) } - override fun goToPreviousUtterance() { + override fun skipToPreviousUtterance() { player.previousUtterance() } - override fun goToNextUtterance() { + override fun skipToNextUtterance() { player.nextUtterance() } diff --git a/test-app/src/main/java/org/readium/r2/testapp/reader/tts/TtsViewModel.kt b/test-app/src/main/java/org/readium/r2/testapp/reader/tts/TtsViewModel.kt index b4f100d46a..53f38f1b67 100644 --- a/test-app/src/main/java/org/readium/r2/testapp/reader/tts/TtsViewModel.kt +++ b/test-app/src/main/java/org/readium/r2/testapp/reader/tts/TtsViewModel.kt @@ -205,11 +205,11 @@ class TtsViewModel private constructor( } fun previous() { - navigatorNow?.goToPreviousUtterance() + navigatorNow?.skipToPreviousUtterance() } fun next() { - navigatorNow?.goToNextUtterance() + navigatorNow?.skipToNextUtterance() } override fun onStopRequested() {