From 3a6333481581fce2af153a5ffb56eddb9ee0f668 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 26 May 2024 01:06:38 +0530 Subject: fix: restore monospace typeface for passwords Fixes #3066 --- app/src/main/java/app/passwordstore/ui/adapters/FieldItemAdapter.kt | 4 ++++ 1 file changed, 4 insertions(+) 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()) } } } -- cgit v1.2.3