From 850ee7a8b9aa93fac290ef4985d26a64a23f81e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Fri, 26 Jul 2024 09:20:34 +0200 Subject: [PATCH] Remove isVisible check on BottomSheet Fixes: DROID-1209 --- .../mullvadvpn/compose/screen/SelectLocationScreen.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreen.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreen.kt index bbef4ff707ae..8cca835f744d 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreen.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/SelectLocationScreen.kt @@ -554,13 +554,7 @@ private fun BottomSheets( val scope = rememberCoroutineScope() val onCloseBottomSheet: (animate: Boolean) -> Unit = { animate -> if (animate) { - scope - .launch { sheetState.hide() } - .invokeOnCompletion { - if (!sheetState.isVisible) { - onHideBottomSheet() - } - } + scope.launch { sheetState.hide() }.invokeOnCompletion { onHideBottomSheet() } } else { onHideBottomSheet() }