Skip to content

Commit 8853b10

Browse files
committed
Update BottomNavigationScreen.kt
fix sample app build error
1 parent e88fb80 commit 8853b10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sample/src/main/kotlin/dev/olshevski/navigation/reimagined/sample/ui/demo/BottomNavigationScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private fun BottomNavigationBackHandler(
128128
private fun NavController<BottomDestination>.moveLastEntryToStart() {
129129
setNewBackstack(
130130
entries = backstack.entries.toMutableList().also {
131-
val entry = it.removeLast()
131+
val entry = it.removeAt(it.lastIndex)
132132
it.add(0, entry)
133133
},
134134
action = NavAction.Pop

0 commit comments

Comments
 (0)