From 377bf03f3d2a2b6523c81305470507b5c277c849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Thu, 11 Jul 2024 12:20:29 +0200 Subject: [PATCH] Hide the lastUsedAccount unless idle --- .../kotlin/net/mullvad/mullvadvpn/compose/screen/LoginScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/LoginScreen.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/LoginScreen.kt index 88d5ef57f290..93a576612c9a 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/LoginScreen.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/LoginScreen.kt @@ -289,7 +289,7 @@ private fun ColumnScope.LoginInput( isError = state.loginState.isError(), ) - AnimatedVisibility(visible = state.lastUsedAccount != null) { + AnimatedVisibility(visible = state.lastUsedAccount != null && state.loginState is Idle) { val token = state.lastUsedAccount?.value.orEmpty() val accountTransformation = remember { accountNumberVisualTransformation() } val transformedText =