diff --git a/library/src/main/java/com/teresaholfeld/stories/StoriesProgressView.kt b/library/src/main/java/com/teresaholfeld/stories/StoriesProgressView.kt index b22858b..36d3f5f 100644 --- a/library/src/main/java/com/teresaholfeld/stories/StoriesProgressView.kt +++ b/library/src/main/java/com/teresaholfeld/stories/StoriesProgressView.kt @@ -116,9 +116,7 @@ class StoriesProgressView : LinearLayout { * Skip current story */ fun skip() { -// if (wasSkippedForward || wasSkippedBackward) return -// if (isComplete) return - if (current >= progressBars.size) return + if (current >= progressBars.size || current < 0) return val p = progressBars[current] wasSkippedForward = true wasSkippedBackward = false @@ -129,8 +127,6 @@ class StoriesProgressView : LinearLayout { * Reverse current story */ fun reverse() { -// if (wasSkippedForward || wasSkippedBackward) return -// if (isComplete) return if (current < 0) return val p = progressBars[current] wasSkippedBackward = true