From f2594b362345aebb1602573db9e574948ef4d518 Mon Sep 17 00:00:00 2001 From: christianrowlands Date: Mon, 4 Nov 2024 08:56:08 -0500 Subject: [PATCH] Allow for navigating to the same destination twice --- .../ui/main/appdrawer/AppDrawerContent.kt | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/networksurvey/src/main/java/com/craxiom/networksurvey/ui/main/appdrawer/AppDrawerContent.kt b/networksurvey/src/main/java/com/craxiom/networksurvey/ui/main/appdrawer/AppDrawerContent.kt index 34dcb3bc..e5b9ce9b 100644 --- a/networksurvey/src/main/java/com/craxiom/networksurvey/ui/main/appdrawer/AppDrawerContent.kt +++ b/networksurvey/src/main/java/com/craxiom/networksurvey/ui/main/appdrawer/AppDrawerContent.kt @@ -71,13 +71,6 @@ fun > AppDrawerContent( ) { items(menuItems) { item -> AppDrawerItem(item = item) { navOption -> - if (currentPick == navOption) { - coroutineScope.launch { - drawerState.close() - } - return@AppDrawerItem - } - currentPick = navOption coroutineScope.launch { drawerState.close() @@ -93,13 +86,6 @@ fun > AppDrawerContent( items(externalLinks) { item -> AppDrawerItem(item = item) { navOption -> - if (currentPick == navOption) { - coroutineScope.launch { - drawerState.close() - } - return@AppDrawerItem - } - currentPick = navOption coroutineScope.launch { drawerState.close()