abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/EmojiKeyButton.java
diff options
context:
space:
mode:
authorJules Aguillon2021-12-28 17:53:58 +0100
committerJules Aguillon2021-12-28 17:53:58 +0100
commit93704cca0ace3bff31dea5d3841ba185ad89398a (patch)
treed2e69c5191f347cd8de9d7b2cbdd4493e2c13a4c /srcs/juloo.keyboard2/EmojiKeyButton.java
parent15ce200ce3f9d19f1a1f1fb43f176bf511f14271 (diff)
downloadunexpected-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.java2
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)