From 93704cca0ace3bff31dea5d3841ba185ad89398a Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Tue, 28 Dec 2021 17:53:58 +0100 Subject: Reference the "special key font" in the Theme object Remove the last cast of the context. --- srcs/juloo.keyboard2/Keyboard2.java | 7 ------- 1 file changed, 7 deletions(-) (limited to 'srcs/juloo.keyboard2/Keyboard2.java') diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java index 0eb2a23..17c9d4e 100644 --- a/srcs/juloo.keyboard2/Keyboard2.java +++ b/srcs/juloo.keyboard2/Keyboard2.java @@ -31,7 +31,6 @@ public class Keyboard2 extends InputMethodService private Keyboard2View _keyboardView; private int _currentTextLayout; private ViewGroup _emojiPane = null; - private Typeface _specialKeyFont = null; private Config _config; @@ -52,7 +51,6 @@ public class Keyboard2 extends InputMethodService public void onCreate() { super.onCreate(); - _specialKeyFont = Typeface.createFromAsset(getAssets(), "fonts/keys.ttf"); PreferenceManager.setDefaultValues(this, R.xml.settings, false); PreferenceManager.getDefaultSharedPreferences(this).registerOnSharedPreferenceChangeListener(this); Config.initGlobalConfig(this, new KeyEventHandler(this.new Receiver())); @@ -61,11 +59,6 @@ public class Keyboard2 extends InputMethodService _keyboardView.reset(); } - public Typeface getSpecialKeyFont() - { - return (_specialKeyFont); - } - private List getEnabledSubtypes(InputMethodManager imm) { String pkg = getPackageName(); -- cgit v1.2.3