From 429c76ce03c04733611156d147afb0f7c1b7321a Mon Sep 17 00:00:00 2001 From: David Perez Date: Mon, 18 Nov 2024 15:35:38 -0600 Subject: [PATCH] PM-14200: Add count to sends type header (#4323) --- .../x8bit/bitwarden/ui/tools/feature/send/SendContent.kt | 3 +++ .../x8bit/bitwarden/ui/vault/feature/vault/VaultContent.kt | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/tools/feature/send/SendContent.kt b/app/src/main/java/com/x8bit/bitwarden/ui/tools/feature/send/SendContent.kt index 9baa6b920..36bff1330 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/tools/feature/send/SendContent.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/tools/feature/send/SendContent.kt @@ -21,6 +21,8 @@ import com.x8bit.bitwarden.ui.platform.components.util.rememberVectorPainter import com.x8bit.bitwarden.ui.tools.feature.send.handlers.SendHandlers import kotlinx.collections.immutable.toImmutableList +private const val SEND_TYPES_COUNT: Int = 2 + /** * Content view for the [SendScreen]. */ @@ -48,6 +50,7 @@ fun SendContent( item { BitwardenListHeaderText( label = stringResource(id = R.string.types), + supportingLabel = SEND_TYPES_COUNT.toString(), modifier = Modifier .fillMaxWidth() .padding(horizontal = 16.dp), diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/vault/VaultContent.kt b/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/vault/VaultContent.kt index 54f2859db..e08d409ae 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/vault/VaultContent.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/vault/VaultContent.kt @@ -22,6 +22,9 @@ import com.x8bit.bitwarden.ui.vault.feature.vault.handlers.VaultHandlers import kotlinx.collections.immutable.toImmutableList import kotlinx.collections.immutable.toPersistentList +private const val TOTP_TYPES_COUNT: Int = 1 +private const val TRASH_TYPES_COUNT: Int = 1 + /** * Content view for the [VaultScreen]. */ @@ -41,7 +44,7 @@ fun VaultContent( item { BitwardenListHeaderText( label = stringResource(id = R.string.totp), - supportingLabel = "1", + supportingLabel = TOTP_TYPES_COUNT.toString(), modifier = Modifier .fillMaxWidth() .padding(horizontal = 16.dp), @@ -341,7 +344,7 @@ fun VaultContent( item { BitwardenListHeaderText( label = stringResource(id = R.string.trash), - supportingLabel = "1", + supportingLabel = TRASH_TYPES_COUNT.toString(), modifier = Modifier .fillMaxWidth() .padding(horizontal = 16.dp),