mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-17 07:22:45 +00:00
set custom typeface also in clipboard suggestion view
and rename read method to get
This commit is contained in:
parent
c1bbf51fa1
commit
789b533358
6 changed files with 6 additions and 8 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue