abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Config.java
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/juloo.keyboard2/Config.java')
-rw-r--r--srcs/juloo.keyboard2/Config.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java
index 054fc41..552aadf 100644
--- a/srcs/juloo.keyboard2/Config.java
+++ b/srcs/juloo.keyboard2/Config.java
@@ -94,13 +94,12 @@ final class Config
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
Resources res = context.getResources();
DisplayMetrics dm = res.getDisplayMetrics();
- // The height of the keyboard is relative to the height of the screen. This
- // is not the actual size of the keyboard, which will be bigger if the
- // layout has a fifth row.
+ // The height of the keyboard is relative to the height of the screen.
+ // This is the height of the keyboard if it have 4 rows.
int keyboardHeightPercent;
if (res.getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) // Landscape mode
{
- keyboardHeightPercent = 55;
+ keyboardHeightPercent = prefs.getInt("keyboard_height_landscape", 50);
}
else
{