mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-19 08:20:15 +00:00
Added better one-handed width for large screen devices
This commit is contained in:
parent
2030d82854
commit
53a904af1e
3 changed files with 5 additions and 2 deletions
|
@ -185,7 +185,7 @@ public final class ResourceUtils {
|
|||
public static int getKeyboardWidth(final Resources res, final SettingsValues settingsValues) {
|
||||
final int defaultKeyboardWidth = getDefaultKeyboardWidth(res);
|
||||
if (settingsValues.mOneHandedModeEnabled) {
|
||||
return (int) res.getFraction(R.fraction.config_one_handed_mode_width_ratio,
|
||||
return (int) res.getFraction(R.fraction.config_one_handed_mode_width,
|
||||
defaultKeyboardWidth, defaultKeyboardWidth);
|
||||
}
|
||||
return defaultKeyboardWidth;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue