diff options
| author | Jules Aguillon | 2022-04-06 09:42:57 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-04-06 09:50:33 +0200 |
| commit | 120c0a9d2351a94a3d900d5a2649588cf24c8748 (patch) | |
| tree | 9ce4e4e17ef5e08156f0012758f0d28c104398e8 /srcs | |
| parent | aaff8689e36817159561b97e59a3055002a919c1 (diff) | |
| download | unexpected-keyboard-120c0a9d2351a94a3d900d5a2649588cf24c8748.tar.gz unexpected-keyboard-120c0a9d2351a94a3d900d5a2649588cf24c8748.zip | |
Fix compat with older version of Android
Resources.getFloat is new from API 29.
Diffstat (limited to 'srcs')
| -rw-r--r-- | srcs/juloo.keyboard2/Config.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 427b0f2..5027e9a 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -56,8 +56,8 @@ final class Config // static values marginTop = res.getDimension(R.dimen.margin_top); keyPadding = res.getDimension(R.dimen.key_padding); - labelTextSize = res.getFloat(R.integer.label_text_size); - sublabelTextSize = res.getFloat(R.integer.sublabel_text_size); + labelTextSize = Float.valueOf(res.getString(R.integer.label_text_size)); + sublabelTextSize = Float.valueOf(res.getString(R.integer.sublabel_text_size)); // default values layout = -1; programming_layout = -1; |
