From f0bd9f54d604070647060afd80d0686de5f0f1c2 Mon Sep 17 00:00:00 2001 From: Brian Yencho Date: Tue, 12 Dec 2023 17:35:43 -0600 Subject: [PATCH] Filter out Card / Identity types from Add Item type list (#380) --- .../bitwarden/ui/vault/feature/additem/AddEditItemContent.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/additem/AddEditItemContent.kt b/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/additem/AddEditItemContent.kt index 7ea25f455..cfc8ef6ed 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/additem/AddEditItemContent.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/vault/feature/additem/AddEditItemContent.kt @@ -88,6 +88,10 @@ private fun TypeOptionsItem( modifier: Modifier, ) { val possibleMainStates = VaultAddItemState.ItemTypeOption.entries.toList() + // TODO: Add support for Card Type items (BIT-668) + .filterNot { it == VaultAddItemState.ItemTypeOption.CARD } + // TODO: Add support for Identity Type items (BIT-667) + .filterNot { it == VaultAddItemState.ItemTypeOption.IDENTITY } val optionsWithStrings = possibleMainStates.associateWith { stringResource(id = it.labelRes) } BitwardenMultiSelectButton(