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 @@ -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 )
You can’t perform that action at this time.
0 commit comments