Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 9ba00dc

Browse files
committed
fix hiding views in StatefulWidget
1 parent 146ee84 commit 9ba00dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

widgets/src/androidMain/kotlin/dev/icerock/moko/widgets/core/factory/StatefulViewFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ actual class StatefulViewFactory actual constructor(
7070
}
7171

7272
views.asSequence()
73-
.filter { it.view.visibility != View.GONE && it.view.id != currentView.view.id }
73+
.filter { it.view.visibility != View.GONE && it.view != currentView.view }
7474
.forEach { it.view.visibility = View.GONE }
7575

7676
if (currentView.view.visibility != View.VISIBLE) {

0 commit comments

Comments
 (0)