From 9c2111e66e2ac09e5e210876665886bc9acb7d27 Mon Sep 17 00:00:00 2001 From: alansley Date: Wed, 7 Aug 2024 13:13:52 +1000 Subject: [PATCH] AccessibilityId WIP --- .../start/invitefriend/InviteFriend.kt | 2 +- .../securesms/preferences/SeedDialog.kt | 2 +- app/src/main/res/layout/activity_home.xml | 2 +- app/src/main/res/layout/activity_settings.xml | 4 ++-- .../res/layout/blocked_contacts_preference.xml | 2 +- .../main/res/layout/dialog_change_avatar.xml | 2 +- .../fragment_conversation_bottom_sheet.xml | 2 +- .../fragment_user_details_bottom_sheet.xml | 2 +- app/src/main/res/layout/view_conversation.xml | 2 +- .../src/main/res/values/strings.xml | 18 +++++++----------- 10 files changed, 17 insertions(+), 21 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/start/invitefriend/InviteFriend.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/start/invitefriend/InviteFriend.kt index dbc122096d..aad1578e24 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/start/invitefriend/InviteFriend.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/start/invitefriend/InviteFriend.kt @@ -53,7 +53,7 @@ internal fun InviteFriend( Text( accountId, modifier = Modifier - .contentDescription(R.string.AccessibilityId_account_id) + .contentDescription(R.string.AccessibilityId_shareAccountId) .fillMaxWidth() .border() .padding(LocalDimensions.current.spacing), diff --git a/app/src/main/java/org/thoughtcrime/securesms/preferences/SeedDialog.kt b/app/src/main/java/org/thoughtcrime/securesms/preferences/SeedDialog.kt index 1718a712bf..26e01756ab 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/preferences/SeedDialog.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/preferences/SeedDialog.kt @@ -27,7 +27,7 @@ class SeedDialog: DialogFragment() { title(R.string.sessionRecoveryPassword) text(R.string.recoveryPasswordDescription) text(seed, R.style.AccountIdTextView) - button(R.string.copy, R.string.AccessibilityId_copy_recovery_phrase) { copySeed() } + button(R.string.copy, R.string.AccessibilityId_sessionRecoveryPasswordCopy) { copySeed() } button(R.string.close) { dismiss() } } diff --git a/app/src/main/res/layout/activity_home.xml b/app/src/main/res/layout/activity_home.xml index 921f2c10a8..3bfb478c48 100644 --- a/app/src/main/res/layout/activity_home.xml +++ b/app/src/main/res/layout/activity_home.xml @@ -57,7 +57,7 @@ + android:contentDescription="@string/AccessibilityId_profilePicture" />