Skip to content

Commit

Permalink
Allow for navigating to the same destination twice
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrowlands committed Nov 4, 2024
1 parent a5ca33c commit f2594b3
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ fun <T : Enum<T>> AppDrawerContent(
) {
items(menuItems) { item ->
AppDrawerItem(item = item) { navOption ->
if (currentPick == navOption) {
coroutineScope.launch {
drawerState.close()
}
return@AppDrawerItem
}

currentPick = navOption
coroutineScope.launch {
drawerState.close()
Expand All @@ -93,13 +86,6 @@ fun <T : Enum<T>> AppDrawerContent(

items(externalLinks) { item ->
AppDrawerItem(item = item) { navOption ->
if (currentPick == navOption) {
coroutineScope.launch {
drawerState.close()
}
return@AppDrawerItem
}

currentPick = navOption
coroutineScope.launch {
drawerState.close()
Expand Down

0 comments on commit f2594b3

Please sign in to comment.