Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 3a63334

Browse files
committed
fix: restore monospace typeface for passwords
Fixes #3066
1 parent 6fe80fb commit 3a63334

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/java/app/passwordstore/ui/adapters/FieldItemAdapter.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
package app.passwordstore.ui.adapters
77

8+
import android.graphics.Typeface
89
import android.text.method.PasswordTransformationMethod
910
import android.view.LayoutInflater
1011
import android.view.View
@@ -82,6 +83,9 @@ class FieldItemAdapter(
8283
} else {
8384
null
8485
}
86+
if (fieldItem.key == FieldItem.ItemType.PASSWORD.type) {
87+
typeface = Typeface.create("monospace", Typeface.NORMAL)
88+
}
8589
setOnClickListener { copyTextToClipboard(itemText.text.toString()) }
8690
}
8791
}

0 commit comments

Comments
 (0)