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/EmojiKeyButton.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'srcs/juloo.keyboard2/EmojiKeyButton.java') 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) -- cgit v1.2.3