diff options
| author | Jules Aguillon | 2021-12-28 17:53:58 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2021-12-28 17:53:58 +0100 |
| commit | 93704cca0ace3bff31dea5d3841ba185ad89398a (patch) | |
| tree | d2e69c5191f347cd8de9d7b2cbdd4493e2c13a4c /srcs/juloo.keyboard2/EmojiKeyButton.java | |
| parent | 15ce200ce3f9d19f1a1f1fb43f176bf511f14271 (diff) | |
| download | unexpected-keyboard-93704cca0ace3bff31dea5d3841ba185ad89398a.tar.gz unexpected-keyboard-93704cca0ace3bff31dea5d3841ba185ad89398a.zip | |
Reference the "special key font" in the Theme object
Remove the last cast of the context.
Diffstat (limited to 'srcs/juloo.keyboard2/EmojiKeyButton.java')
| -rw-r--r-- | srcs/juloo.keyboard2/EmojiKeyButton.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/EmojiKeyButton.java b/srcs/juloo.keyboard2/EmojiKeyButton.java index 6f662b4..51ff14f 100644 --- a/srcs/juloo.keyboard2/EmojiKeyButton.java +++ b/srcs/juloo.keyboard2/EmojiKeyButton.java @@ -17,7 +17,7 @@ public class EmojiKeyButton extends Button _key = KeyValue.getKeyByName(attrs.getAttributeValue(null, "key")); setText(_key.symbol); if ((_key.flags & KeyValue.FLAG_KEY_FONT) != 0) - setTypeface(((Keyboard2)context).getSpecialKeyFont()); + setTypeface(Theme.getSpecialKeyFont(context)); } public void onClick(View v) |
