Skip to content

Commit d9221a3

Browse files
committed
Fix start screen handling
1 parent b994e3b commit d9221a3

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
@@ -225,7 +225,6 @@ fun EntryProviderScope<Any>.startScreens(backStack: MutableList<AppRoute>) {
225225
AppPrivacyNoticePrompt(
226226
onRejectNotice = {
227227
if (skipNotifications) {
228-
// TODO do this in a safer way to avoid a potentially empty stack for a moment
229228
backStack.clear()
230229
backStack.add(MainScreen)
231230
} else {
@@ -234,7 +233,6 @@ fun EntryProviderScope<Any>.startScreens(backStack: MutableList<AppRoute>) {
234233
},
235234
onAcceptNotice = {
236235
if (skipNotifications) {
237-
// TODO do this in a safer way to avoid a potentially empty stack for a moment
238236
backStack.clear()
239237
backStack.add(MainScreen)
240238
} else {
@@ -249,6 +247,7 @@ fun EntryProviderScope<Any>.startScreens(backStack: MutableList<AppRoute>) {
249247
entry<StartNotificationsScreen> {
250248
StartNotificationsScreen(
251249
onDone = {
250+
backStack.clear()
252251
backStack.add(MainScreen)
253252
}
254253
)

0 commit comments

Comments
 (0)