mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-19 05:39:10 +00:00
fix typo in split distace (6000 -> 600)
and increase max split distance for high dp devices fixes #869
This commit is contained in:
parent
f7b12757ed
commit
17f30ad6d6
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ public class SettingsValues {
|
|||
mIsSplitKeyboardEnabled = prefs.getBoolean(Settings.PREF_ENABLE_SPLIT_KEYBOARD, false) && displayWidthDp > 600; // require display width of 600 dp for split
|
||||
// determine spacerWidth from display width and scale setting
|
||||
mSplitKeyboardSpacerRelativeWidth = mIsSplitKeyboardEnabled
|
||||
? Math.min(Math.max((displayWidthDp - 600) / 6000f + 0.15f, 0.15f), 0.25f) * prefs.getFloat(Settings.PREF_SPLIT_SPACER_SCALE, DEFAULT_SIZE_SCALE)
|
||||
? Math.min(Math.max((displayWidthDp - 600) / 600f + 0.15f, 0.15f), 0.35f) * prefs.getFloat(Settings.PREF_SPLIT_SPACER_SCALE, DEFAULT_SIZE_SCALE)
|
||||
: 0f;
|
||||
mQuickPinToolbarKeys = prefs.getBoolean(Settings.PREF_QUICK_PIN_TOOLBAR_KEYS, false);
|
||||
mScreenMetrics = Settings.readScreenMetrics(res);
|
||||
|
|
Loading…
Add table
Reference in a new issue