mirror of
https://github.com/bitwarden/android.git
synced 2026-11-19 17:40:12 -06:00
BIT-2160: Edit cipher crash (#1176)
This commit is contained in:
committed by
Álison Fernandes
parent
992bafc16c
commit
3a7ef240b0
+8
-2
@@ -2421,8 +2421,14 @@ class VaultAddEditViewModelTest : BaseViewModelTest() {
|
||||
set("vault_edit_id", (vaultAddEditType as? VaultAddEditType.EditItem)?.vaultItemId)
|
||||
set(
|
||||
"vault_add_item_type",
|
||||
(vaultAddEditType as? VaultAddEditType.AddItem)
|
||||
?.vaultItemCipherType,
|
||||
when ((vaultAddEditType as? VaultAddEditType.AddItem)
|
||||
?.vaultItemCipherType) {
|
||||
VaultItemCipherType.LOGIN -> "login"
|
||||
VaultItemCipherType.CARD -> "card"
|
||||
VaultItemCipherType.IDENTITY -> "identity"
|
||||
VaultItemCipherType.SECURE_NOTE -> "secure_note"
|
||||
null -> null
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user