File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
shared/src/commonMain/kotlin/org/jetbrains/kotlinconf/navigation Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments