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.
|
* 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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user