This repository was archived by the owner on Oct 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
java/app/passwordstore/ui/adapters
ui/compose/src/main/res/font Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 5
5
6
6
package app.passwordstore.ui.adapters
7
7
8
- import android.graphics.Typeface
9
8
import android.text.method.PasswordTransformationMethod
10
9
import android.view.LayoutInflater
11
10
import android.view.View
12
11
import android.view.ViewGroup
13
12
import androidx.core.content.ContextCompat
13
+ import androidx.core.content.res.ResourcesCompat
14
14
import androidx.recyclerview.widget.RecyclerView
15
15
import app.passwordstore.R
16
16
import app.passwordstore.data.passfile.Totp
17
17
import app.passwordstore.data.password.FieldItem
18
18
import app.passwordstore.databinding.ItemFieldBinding
19
+ import app.passwordstore.ui.compose.R as composeR
19
20
import com.google.android.material.textfield.TextInputLayout
20
21
21
22
class FieldItemAdapter (
@@ -84,7 +85,11 @@ class FieldItemAdapter(
84
85
null
85
86
}
86
87
if (fieldItem.key == FieldItem .ItemType .PASSWORD .type) {
87
- typeface = Typeface .create(" monospace" , Typeface .NORMAL )
88
+ typeface =
89
+ ResourcesCompat .getFont(
90
+ binding.root.context,
91
+ composeR.font.jetbrainsmono_nl_regular,
92
+ )
88
93
}
89
94
setOnClickListener { copyTextToClipboard(itemText.text.toString()) }
90
95
}
Original file line number Diff line number Diff line change 158
158
android : layout_marginStart =" @dimen/activity_horizontal_margin"
159
159
android : layout_marginTop =" 16dp"
160
160
android : layout_marginEnd =" @dimen/activity_horizontal_margin"
161
- android : fontFamily =" monospace "
161
+ android : fontFamily =" @font/jetbrainsmono_nl_regular "
162
162
android : gravity =" center_horizontal"
163
163
android : textIsSelectable =" true"
164
164
android : textSize =" 10sp"
You can’t perform that action at this time.
0 commit comments