diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/MullvadApp.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/MullvadApp.kt index 0fb165ea89b9..96c9a63ce218 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/MullvadApp.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/MullvadApp.kt @@ -88,7 +88,7 @@ fun MullvadApp() { val launchVpnPermission = rememberLauncherForActivityResult(RequestVpnPermission()) { _ -> permissionVm.connect() } LaunchedEffect(Unit) { - changeLogsViewModel.uiSideEffect.collect { + permissionVm.uiSideEffect.collect { if (it is VpnPermissionSideEffect.ShowDialog) { launchVpnPermission.launch(Unit) }