fix: restore monospace typeface for passwords

Fixes #3066
This commit is contained in:
Harsh Shandilya 2024-05-26 01:06:38 +05:30
parent 6fe80fb4b3
commit 3a63334815

View file

@ -5,6 +5,7 @@
package app.passwordstore.ui.adapters package app.passwordstore.ui.adapters
import android.graphics.Typeface
import android.text.method.PasswordTransformationMethod import android.text.method.PasswordTransformationMethod
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.View import android.view.View
@ -82,6 +83,9 @@ class FieldItemAdapter(
} else { } else {
null null
} }
if (fieldItem.key == FieldItem.ItemType.PASSWORD.type) {
typeface = Typeface.create("monospace", Typeface.NORMAL)
}
setOnClickListener { copyTextToClipboard(itemText.text.toString()) } setOnClickListener { copyTextToClipboard(itemText.text.toString()) }
} }
} }