Skip to content

Commit 15a34ae

Browse files
committed
Fix start screen handling
1 parent 411888f commit 15a34ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

shared/src/commonMain/kotlin/org/jetbrains/kotlinconf/navigation/KotlinConfNavHost.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ fun EntryProviderScope<Any>.startScreens(backStack: MutableList<AppRoute>) {
241241
AppPrivacyNoticePrompt(
242242
onRejectNotice = {
243243
if (skipNotifications) {
244-
// TODO do this in a safer way to avoid a potentially empty stack for a moment
245244
backStack.clear()
246245
backStack.add(MainScreen)
247246
} else {
@@ -250,7 +249,6 @@ fun EntryProviderScope<Any>.startScreens(backStack: MutableList<AppRoute>) {
250249
},
251250
onAcceptNotice = {
252251
if (skipNotifications) {
253-
// TODO do this in a safer way to avoid a potentially empty stack for a moment
254252
backStack.clear()
255253
backStack.add(MainScreen)
256254
} else {
@@ -265,6 +263,7 @@ fun EntryProviderScope<Any>.startScreens(backStack: MutableList<AppRoute>) {
265263
entry<StartNotificationsScreen> {
266264
StartNotificationsScreen(
267265
onDone = {
266+
backStack.clear()
268267
backStack.add(MainScreen)
269268
}
270269
)

0 commit comments

Comments
 (0)