aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2024-05-26 01:06:38 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2024-05-26 01:06:38 +0530
commit3a6333481581fce2af153a5ffb56eddb9ee0f668 (patch)
treeb6fe4c102f2709b94e873a2eaed1ab0676354be1
parent6fe80fb4b3e842f85c36dea08dbd7d0220f4c1e7 (diff)
fix: restore monospace typeface for passwords
Fixes #3066
-rw-r--r--app/src/main/java/app/passwordstore/ui/adapters/FieldItemAdapter.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/app/passwordstore/ui/adapters/FieldItemAdapter.kt b/app/src/main/java/app/passwordstore/ui/adapters/FieldItemAdapter.kt
index 590bb5c2..18bedfaf 100644
--- a/app/src/main/java/app/passwordstore/ui/adapters/FieldItemAdapter.kt
+++ b/app/src/main/java/app/passwordstore/ui/adapters/FieldItemAdapter.kt
@@ -5,6 +5,7 @@
package app.passwordstore.ui.adapters
+import android.graphics.Typeface
import android.text.method.PasswordTransformationMethod
import android.view.LayoutInflater
import android.view.View
@@ -82,6 +83,9 @@ class FieldItemAdapter(
} else {
null
}
+ if (fieldItem.key == FieldItem.ItemType.PASSWORD.type) {
+ typeface = Typeface.create("monospace", Typeface.NORMAL)
+ }
setOnClickListener { copyTextToClipboard(itemText.text.toString()) }
}
}