PR comments

This commit is contained in:
Philip Cappelli
2025-04-01 11:59:03 -04:00
parent f82bda5bce
commit bdf50fd1a6
2 changed files with 13 additions and 5 deletions

View File

@@ -1597,6 +1597,9 @@ data class VaultItemState(
* Represents a custom field, TextField, HiddenField, BooleanField, or LinkedField. * Represents a custom field, TextField, HiddenField, BooleanField, or LinkedField.
*/ */
sealed class Custom : Parcelable { sealed class Custom : Parcelable {
/**
* The unique ID of the custom field.
*/
abstract val id: String abstract val id: String
/** /**

View File

@@ -192,31 +192,36 @@ fun createCommonContent(
value = "value", value = "value",
type = FieldType.TEXT, type = FieldType.TEXT,
linkedId = null, linkedId = null,
).toCustomField(null), )
.toCustomField(null),
FieldView( FieldView(
name = "hidden", name = "hidden",
value = "value", value = "value",
type = FieldType.HIDDEN, type = FieldType.HIDDEN,
linkedId = null, linkedId = null,
).toCustomField(null), )
.toCustomField(null),
FieldView( FieldView(
name = "boolean", name = "boolean",
value = "true", value = "true",
type = FieldType.BOOLEAN, type = FieldType.BOOLEAN,
linkedId = null, linkedId = null,
).toCustomField(null), )
.toCustomField(null),
FieldView( FieldView(
name = "linked username", name = "linked username",
value = null, value = null,
type = FieldType.LINKED, type = FieldType.LINKED,
linkedId = 100U, linkedId = 100U,
).toCustomField(null), )
.toCustomField(null),
FieldView( FieldView(
name = "linked password", name = "linked password",
value = null, value = null,
type = FieldType.LINKED, type = FieldType.LINKED,
linkedId = 101U, linkedId = 101U,
).toCustomField(null), )
.toCustomField(null),
), ),
requiresReprompt = true, requiresReprompt = true,
requiresCloneConfirmation = true, requiresCloneConfirmation = true,