Skip to content

Commit

Permalink
Swallow the back event
Browse files Browse the repository at this point in the history
  • Loading branch information
StaehliJ committed Dec 12, 2023
1 parent c999e6e commit 5695b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ private fun <T> ExamplesSection(
} else if (navController.previousBackStackEntry == null) {
focusedIndex = -1
focusManager.moveFocus(FocusDirection.Up)
true
} else {
false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ private fun <T> ListsSection(
} else if (navController.previousBackStackEntry == null) {
focusedIndex = -1
focusManager.moveFocus(FocusDirection.Up)
true
} else {
false
}
Expand Down

0 comments on commit 5695b22

Please sign in to comment.