From 5dd7c9103808b5014def75dfcf45662f4c2e575a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 8 Oct 2022 18:28:27 +0530 Subject: feat(app): add username to DecryptScreen --- app/src/main/java/app/passwordstore/ui/crypto/DecryptScreen.kt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/src/main') 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!!)) } }, + ) + } } } } -- cgit v1.2.3