From aabaeef59e7628cbe43c7ae5b3569fb665a77a98 Mon Sep 17 00:00:00 2001 From: Sergiu Puhalschi Date: Fri, 20 Dec 2024 16:44:34 +0200 Subject: [PATCH] Fix string keys usages --- .../wallet/android/presentation/dialogs/info/InfoDialog.kt | 4 ++-- .../onboarding/SecurityShieldOnboardingScreen.kt | 4 ++-- .../securityshields/preparefactors/PrepareFactorsScreen.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/babylon/wallet/android/presentation/dialogs/info/InfoDialog.kt b/app/src/main/java/com/babylon/wallet/android/presentation/dialogs/info/InfoDialog.kt index 3c3a832e9d..d8fab33e94 100644 --- a/app/src/main/java/com/babylon/wallet/android/presentation/dialogs/info/InfoDialog.kt +++ b/app/src/main/java/com/babylon/wallet/android/presentation/dialogs/info/InfoDialog.kt @@ -226,8 +226,8 @@ private fun GlossaryItem.resolveTextFromGlossaryItem() = when (this) { GlossaryItem.gateways -> stringResource(R.string.infoLink_glossary_gateways) GlossaryItem.preauthorizations -> stringResource(id = R.string.infoLink_glossary_preauthorizations) GlossaryItem.possibledappcalls -> stringResource(id = R.string.infoLink_glossary_possibledappcalls) - GlossaryItem.securityshield -> "" // TODO crowdin - GlossaryItem.buildsecurityshields -> "" // TODO crowdin + GlossaryItem.securityshield -> stringResource(id = R.string.infoLink_glossary_securityshields) + GlossaryItem.buildsecurityshields -> stringResource(id = R.string.infoLink_glossary_buildingshield) GlossaryItem.nohardwaredevice -> "" // TODO crowdin } diff --git a/app/src/main/java/com/babylon/wallet/android/presentation/settings/securitycenter/securityshields/onboarding/SecurityShieldOnboardingScreen.kt b/app/src/main/java/com/babylon/wallet/android/presentation/settings/securitycenter/securityshields/onboarding/SecurityShieldOnboardingScreen.kt index da15056577..6a97c5123b 100644 --- a/app/src/main/java/com/babylon/wallet/android/presentation/settings/securitycenter/securityshields/onboarding/SecurityShieldOnboardingScreen.kt +++ b/app/src/main/java/com/babylon/wallet/android/presentation/settings/securitycenter/securityshields/onboarding/SecurityShieldOnboardingScreen.kt @@ -185,11 +185,11 @@ private fun SecurityShieldOnboardingContent( ) { when (currentPage) { SecurityShieldOnboardingViewModel.State.Page.Introduction -> InfoButton( - text = stringResource(id = R.string.infoLink_title_securityshield), + text = stringResource(id = R.string.infoLink_title_securityshields), onClick = { onInfoClick(GlossaryItem.securityshield) } ) SecurityShieldOnboardingViewModel.State.Page.AddFactors -> InfoButton( - text = stringResource(id = R.string.infoLink_title_buildsecurityshields), + text = stringResource(id = R.string.infoLink_title_buildingshield), onClick = { onInfoClick(GlossaryItem.buildsecurityshields) } ) SecurityShieldOnboardingViewModel.State.Page.ApplyShield -> {} diff --git a/app/src/main/java/com/babylon/wallet/android/presentation/settings/securitycenter/securityshields/preparefactors/PrepareFactorsScreen.kt b/app/src/main/java/com/babylon/wallet/android/presentation/settings/securitycenter/securityshields/preparefactors/PrepareFactorsScreen.kt index 0cc85504d8..25921dd34d 100644 --- a/app/src/main/java/com/babylon/wallet/android/presentation/settings/securitycenter/securityshields/preparefactors/PrepareFactorsScreen.kt +++ b/app/src/main/java/com/babylon/wallet/android/presentation/settings/securitycenter/securityshields/preparefactors/PrepareFactorsScreen.kt @@ -154,7 +154,7 @@ private fun PrepareFactorsContent( InfoButton( modifier = Modifier.padding(horizontal = RadixTheme.dimensions.paddingXXXXLarge), - text = stringResource(id = R.string.infoLink_title_buildsecurityshields), + text = stringResource(id = R.string.infoLink_title_buildingshield), onClick = { onInfoClick(GlossaryItem.nohardwaredevice) } ) }