From 1e9eeff86adff3af64b515de4682a147f3078a55 Mon Sep 17 00:00:00 2001 From: alansley Date: Wed, 7 Aug 2024 11:06:39 +1000 Subject: [PATCH] AccessibilityId adjustments & removed some unused XML layouts --- .../onboarding/loadaccount/LoadAccount.kt | 2 +- .../onboarding/pickname/PickDisplayName.kt | 2 +- .../layout-sw400dp/activity_display_name.xml | 2 +- .../res/layout-sw400dp/activity_pn_mode.xml | 120 ------------------ .../fragment_recovery_phrase.xml | 65 ---------- .../main/res/layout/activity_display_name.xml | 2 +- app/src/main/res/layout/activity_pn_mode.xml | 120 ------------------ app/src/main/res/layout/activity_settings.xml | 2 +- .../res/layout/fragment_recovery_phrase.xml | 63 --------- .../src/main/res/values/strings.xml | 12 +- 10 files changed, 7 insertions(+), 383 deletions(-) delete mode 100644 app/src/main/res/layout-sw400dp/activity_pn_mode.xml delete mode 100644 app/src/main/res/layout-sw400dp/fragment_recovery_phrase.xml delete mode 100644 app/src/main/res/layout/activity_pn_mode.xml delete mode 100644 app/src/main/res/layout/fragment_recovery_phrase.xml diff --git a/app/src/main/java/org/thoughtcrime/securesms/onboarding/loadaccount/LoadAccount.kt b/app/src/main/java/org/thoughtcrime/securesms/onboarding/loadaccount/LoadAccount.kt index 18d2c8db37..09b2ecd7ae 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/onboarding/loadaccount/LoadAccount.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/onboarding/loadaccount/LoadAccount.kt @@ -100,7 +100,7 @@ private fun RecoveryPassword(state: State, onChange: (String) -> Unit = {}, onCo SessionOutlinedTextField( text = state.recoveryPhrase, modifier = Modifier.fillMaxWidth(), - contentDescription = stringResource(R.string.AccessibilityId_recoveryPasswordRestore), + contentDescription = stringResource(R.string.AccessibilityId_recoveryPasswordEnter), placeholder = stringResource(R.string.recoveryPasswordEnter), onChange = onChange, onContinue = onContinue, diff --git a/app/src/main/java/org/thoughtcrime/securesms/onboarding/pickname/PickDisplayName.kt b/app/src/main/java/org/thoughtcrime/securesms/onboarding/pickname/PickDisplayName.kt index 0747c57502..1481695a3a 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/onboarding/pickname/PickDisplayName.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/onboarding/pickname/PickDisplayName.kt @@ -66,7 +66,7 @@ internal fun PickDisplayName( SessionOutlinedTextField( text = state.displayName, modifier = Modifier.fillMaxWidth(), - contentDescription = stringResource(R.string.AccessibilityId_enter_display_name), + contentDescription = stringResource(R.string.AccessibilityId_displayNameEnter), placeholder = stringResource(R.string.displayNameEnter), onChange = onChange, onContinue = onContinue, diff --git a/app/src/main/res/layout-sw400dp/activity_display_name.xml b/app/src/main/res/layout-sw400dp/activity_display_name.xml index 5456791d32..e6d94a5e26 100644 --- a/app/src/main/res/layout-sw400dp/activity_display_name.xml +++ b/app/src/main/res/layout-sw400dp/activity_display_name.xml @@ -33,7 +33,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - -