mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 16:11:20 +02:00
Fix crash when starting app from next up (#730)
## Description Fixes a possible crash starting the app from the next up row ### Related issues Fixes #729
This commit is contained in:
parent
7a20fedef4
commit
81d7aad0c6
2 changed files with 10 additions and 2 deletions
|
|
@ -75,7 +75,11 @@ class NavigationManager
|
|||
while (backStack.size > 1) {
|
||||
backStack.removeLastOrNull()
|
||||
}
|
||||
backStack[0] = destination
|
||||
if (backStack.isEmpty()) {
|
||||
backStack.add(0, destination)
|
||||
} else {
|
||||
backStack[0] = destination
|
||||
}
|
||||
log()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue