forked from extern/Unexpected-Keyboard
Fix compat with older version of Android
Resources.getFloat is new from API 29.
This commit is contained in:
parent
aaff8689e3
commit
120c0a9d23
@ -56,8 +56,8 @@ final class Config
|
|||||||
// static values
|
// static values
|
||||||
marginTop = res.getDimension(R.dimen.margin_top);
|
marginTop = res.getDimension(R.dimen.margin_top);
|
||||||
keyPadding = res.getDimension(R.dimen.key_padding);
|
keyPadding = res.getDimension(R.dimen.key_padding);
|
||||||
labelTextSize = res.getFloat(R.integer.label_text_size);
|
labelTextSize = Float.valueOf(res.getString(R.integer.label_text_size));
|
||||||
sublabelTextSize = res.getFloat(R.integer.sublabel_text_size);
|
sublabelTextSize = Float.valueOf(res.getString(R.integer.sublabel_text_size));
|
||||||
// default values
|
// default values
|
||||||
layout = -1;
|
layout = -1;
|
||||||
programming_layout = -1;
|
programming_layout = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user