Skip to content

Commit 6284283

Browse files
authored
Merge pull request #16 from pseudoankit/fix-showing-last-tooltip
reset visible tooltip list before setting new one
2 parents 95f3222 + f97fa19 commit 6284283

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

coachmark/src/main/java/com/pseudoankit/coachmark/scope/CoachMarkScopeImpl.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ internal class CoachMarkScopeImpl(
3030

3131
private var _visibleTooltips = listOf<TooltipConfig>()
3232
set(value) {
33+
// resetting all values before setting new ones
34+
field = listOf()
3335
_visibleTooltipIndex = 0
3436
updateVisibleItem(value, _visibleTooltipIndex)
3537
field = value

0 commit comments

Comments
 (0)