From 36a718753d94249bf2a249509b31fe0969559951 Mon Sep 17 00:00:00 2001 From: David Perez Date: Mon, 21 Oct 2024 09:00:22 -0500 Subject: [PATCH] PM-13021: Update no item found copy for totp (#4115) --- .../feature/itemlisting/util/VaultItemListingDataExtensions.kt | 2 +- app/src/main/res/values/strings.xml | 1 + .../itemlisting/util/VaultItemListingDataExtensionsTest.kt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/itemlisting/util/VaultItemListingDataExtensions.kt b/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/itemlisting/util/VaultItemListingDataExtensions.kt index 67d09b720..450e6ca66 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/itemlisting/util/VaultItemListingDataExtensions.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/itemlisting/util/VaultItemListingDataExtensions.kt @@ -201,7 +201,7 @@ fun VaultData.toViewState( } VaultItemListingState.ViewState.NoItems( header = totpData - ?.let { R.string.no_items_for_uri.asText(it.issuer ?: it.accountName ?: "--") } + ?.let { R.string.no_items_for_vault.asText(it.issuer ?: it.accountName ?: "--") } ?: R.string.save_and_protect_your_data.asText(), message = message, shouldShowAddButton = shouldShowAddButton, diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1afbb68af..68105a12d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -195,6 +195,7 @@ Translations Items for %1$s There are no items in your vault for %1$s. + There are no items in your vault that match ā€œ%1$sā€ Search for a login or add a new login When you select an input field and see a Bitwarden auto-fill overlay, you can tap it to launch the auto-fill service. Tap this notification to auto-fill an item from your vault. diff --git a/app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/itemlisting/util/VaultItemListingDataExtensionsTest.kt b/app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/itemlisting/util/VaultItemListingDataExtensionsTest.kt index cb378e826..891e74680 100644 --- a/app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/itemlisting/util/VaultItemListingDataExtensionsTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/ui/vault/feature/itemlisting/util/VaultItemListingDataExtensionsTest.kt @@ -748,7 +748,7 @@ class VaultItemListingDataExtensionsTest { // Totp assertEquals( VaultItemListingState.ViewState.NoItems( - header = R.string.no_items_for_uri.asText("issuer"), + header = R.string.no_items_for_vault.asText("issuer"), message = R.string.search_for_a_login_or_add_a_new_login.asText(), shouldShowAddButton = false, buttonText = R.string.add_an_item.asText(),