From 3410fad62cec9b4d994d90a702f91c22782f4753 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Sun, 1 Jul 2018 14:35:11 +0200 Subject: [PATCH] only disable emoji fonts on Lollipop and lower --- .../com/keylesspalace/tusky/fragment/PreferencesFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/PreferencesFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/PreferencesFragment.java index 46ce2550..9841e1fe 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/PreferencesFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/PreferencesFragment.java @@ -69,7 +69,7 @@ public class PreferencesFragment extends PreferenceFragment implements SharedPre addPreferencesFromResource(preference); Preference emojiPreference = findPreference("emojiCompat"); - if(emojiPreference != null && Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) { + if(emojiPreference != null && Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP) { //disable emoji fonts on Android 5 because they cause problems ((PreferenceCategory)findPreference("categoryAppearance")).removePreference(emojiPreference); }