Skip to content

Commit 368d5bc

Browse files
committed
Rename function
1 parent ed31992 commit 368d5bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/com/canopas/campose/showcase/MainActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ fun IntroShowcaseScope.BackButton(introShowcaseState: IntroShowcaseState) {
231231
Button(
232232
onClick = {
233233
// Used to restart the intro showcase
234-
introShowcaseState.resetState()
234+
introShowcaseState.reset()
235235
},
236236
) {
237237
Text(text = "Restart Intro")

showcase/src/main/java/com/canopas/lib/showcase/component/IntroShowcaseState.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class IntroShowcaseState internal constructor(
6666
/**
6767
* Resets the state to its initial values, effectively restarting the showcase.
6868
*/
69-
fun resetState() {
69+
fun reset() {
7070
currentTargetIndex = 0
7171
}
7272
}

0 commit comments

Comments
 (0)