mirror of
https://github.com/bitwarden/android.git
synced 2026-03-21 13:52:07 -05:00
PR comments
This commit is contained in:
@@ -1597,6 +1597,9 @@ data class VaultItemState(
|
||||
* Represents a custom field, TextField, HiddenField, BooleanField, or LinkedField.
|
||||
*/
|
||||
sealed class Custom : Parcelable {
|
||||
/**
|
||||
* The unique ID of the custom field.
|
||||
*/
|
||||
abstract val id: String
|
||||
|
||||
/**
|
||||
|
||||
@@ -192,31 +192,36 @@ fun createCommonContent(
|
||||
value = "value",
|
||||
type = FieldType.TEXT,
|
||||
linkedId = null,
|
||||
).toCustomField(null),
|
||||
)
|
||||
.toCustomField(null),
|
||||
FieldView(
|
||||
name = "hidden",
|
||||
value = "value",
|
||||
type = FieldType.HIDDEN,
|
||||
linkedId = null,
|
||||
).toCustomField(null),
|
||||
)
|
||||
.toCustomField(null),
|
||||
FieldView(
|
||||
name = "boolean",
|
||||
value = "true",
|
||||
type = FieldType.BOOLEAN,
|
||||
linkedId = null,
|
||||
).toCustomField(null),
|
||||
)
|
||||
.toCustomField(null),
|
||||
FieldView(
|
||||
name = "linked username",
|
||||
value = null,
|
||||
type = FieldType.LINKED,
|
||||
linkedId = 100U,
|
||||
).toCustomField(null),
|
||||
)
|
||||
.toCustomField(null),
|
||||
FieldView(
|
||||
name = "linked password",
|
||||
value = null,
|
||||
type = FieldType.LINKED,
|
||||
linkedId = 101U,
|
||||
).toCustomField(null),
|
||||
)
|
||||
.toCustomField(null),
|
||||
),
|
||||
requiresReprompt = true,
|
||||
requiresCloneConfirmation = true,
|
||||
|
||||
Reference in New Issue
Block a user