aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-10-08 18:28:27 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2022-10-08 18:28:27 +0530
commit5dd7c9103808b5014def75dfcf45662f4c2e575a (patch)
tree08486b6c7ac7e1d76fbf4d35beafe7f63a91ae7f /app
parent9bdbd552049d845383675c35c1323372d46a37b9 (diff)
feat(app): add username to DecryptScreen
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/app/passwordstore/ui/crypto/DecryptScreen.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/src/main/java/app/passwordstore/ui/crypto/DecryptScreen.kt b/app/src/main/java/app/passwordstore/ui/crypto/DecryptScreen.kt
index 3dc2a401..3c2ee025 100644
--- a/app/src/main/java/app/passwordstore/ui/crypto/DecryptScreen.kt
+++ b/app/src/main/java/app/passwordstore/ui/crypto/DecryptScreen.kt
@@ -69,6 +69,15 @@ fun PasswordEntryScreen(
trailingIcon = { CopyButton { clipboard.setText(AnnotatedString(totp.value)) } }
)
}
+ if (entry.username != null) {
+ TextField(
+ value = entry.username!!,
+ onValueChange = {},
+ readOnly = true,
+ label = { Text("Username") },
+ trailingIcon = { CopyButton { clipboard.setText(AnnotatedString(entry.username!!)) } },
+ )
+ }
}
}
}