Skip to content

Commit

Permalink
Rename goToNextUtterance to skipToNextUtterance
Browse files Browse the repository at this point in the history
  • Loading branch information
qnga committed Oct 5, 2023
1 parent cd7eebe commit 374e197
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ public class TtsNavigator<S : TtsEngine.Settings, P : TtsEngine.Preferences<P>,
player.go(publication.normalizeLocator(locator))
}

override fun goToPreviousUtterance() {
override fun skipToPreviousUtterance() {
player.previousUtterance()
}

override fun goToNextUtterance() {
override fun skipToNextUtterance() {
player.nextUtterance()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ class TtsViewModel private constructor(
}

fun previous() {
navigatorNow?.goToPreviousUtterance()
navigatorNow?.skipToPreviousUtterance()
}

fun next() {
navigatorNow?.goToNextUtterance()
navigatorNow?.skipToNextUtterance()
}

override fun onStopRequested() {
Expand Down

0 comments on commit 374e197

Please sign in to comment.