From 6039cee93e0d3c4c9e6554a472e08e4d93aab939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Thu, 25 Jul 2024 16:06:58 +0200 Subject: [PATCH] Remove lifecycle state in Select location --- .../mullvad/mullvadvpn/compose/screen/SelectLocationScreen.kt | 4 ---- 1 file changed, 4 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 430c1130d55f..bbef4ff707ae 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 @@ -45,9 +45,7 @@ import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.tooling.preview.Preview -import androidx.lifecycle.compose.LocalLifecycleOwner import androidx.lifecycle.compose.collectAsStateWithLifecycle -import androidx.lifecycle.compose.currentStateAsState import androidx.lifecycle.compose.dropUnlessResumed import com.ramcosta.composedestinations.annotation.Destination import com.ramcosta.composedestinations.annotation.RootGraph @@ -287,8 +285,6 @@ fun SelectLocationScreen( ) } ) { - val lifecycleState = LocalLifecycleOwner.current.lifecycle.currentStateAsState() - Text(text = lifecycleState.value.toString()) var bottomSheetState by remember { mutableStateOf(null) } BottomSheets( bottomSheetState = bottomSheetState,