From b0a1e64b247d3050270ddb55e92853a561d25d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Mon, 25 Sep 2023 15:14:12 +0200 Subject: [PATCH] Add content description --- .../net/mullvad/mullvadvpn/compose/screen/LoginScreen.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 5df815f20900..4d15c351ed0d 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 @@ -257,7 +257,7 @@ private fun LoginIcon(state: LoginState, modifier: Modifier = Modifier) { if (state.loginError != null) { Image( painter = painterResource(id = R.drawable.icon_fail), - contentDescription = null, + contentDescription = stringResource(id = R.string.login_fail_title), contentScale = ContentScale.Inside ) } else { @@ -274,7 +274,7 @@ private fun LoginIcon(state: LoginState, modifier: Modifier = Modifier) { Image( modifier = Modifier.offset(-Dimens.smallPadding, -Dimens.smallPadding), painter = painterResource(id = R.drawable.icon_success), - contentDescription = null, + contentDescription = stringResource(id = R.string.logged_in_title), ) } }