set custom typeface also in clipboard suggestion view

and rename read method to get
This commit is contained in:
Helium314 2025-01-18 12:45:26 +01:00
parent c1bbf51fa1
commit 789b533358
6 changed files with 6 additions and 8 deletions

View file

@ -737,10 +737,7 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
}
@Nullable
public Typeface readCustomTypeface() {
// dammit, dann würde wenns keins gibt bei jedem zugriff gesucht -> 2 variablen nehmen? custom und hasCustom?
// ein clear brauchen wir sowieso on theme changed (und auch triggern wenn man ne font setzt/löscht)
// try/catch!
public Typeface getCustomTypeface() {
if (sCachedTypeface == null) {
try {
sCachedTypeface = Typeface.createFromFile(getCustomFontFile(mContext));