abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Config.java
diff options
context:
space:
mode:
authorJules Aguillon2021-05-09 12:14:56 +0200
committerJules Aguillon2021-05-09 12:14:56 +0200
commit092b8e1c151df7087e8ef2bc285d38847157fadb (patch)
tree78782e6f55d3a910aa5fc143bc380163f23e6858 /srcs/juloo.keyboard2/Config.java
parentdd5fce6cae0fb1dec104970fc7965cfba9e2ab94 (diff)
downloadunexpected-keyboard-092b8e1c151df7087e8ef2bc285d38847157fadb.tar.gz
unexpected-keyboard-092b8e1c151df7087e8ef2bc285d38847157fadb.zip
Fix recently introduced crash
Diffstat (limited to 'srcs/juloo.keyboard2/Config.java')
-rw-r--r--srcs/juloo.keyboard2/Config.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java
index dff52d3..67722c5 100644
--- a/srcs/juloo.keyboard2/Config.java
+++ b/srcs/juloo.keyboard2/Config.java
@@ -57,7 +57,7 @@ class Config
horizontalMargin = res.getDimension(R.dimen.horizontal_margin);
preciseRepeat = true;
characterSize = 1.f;
- accents = 0;
+ accents = 1;
// from prefs
refresh();
// initialized later
@@ -83,7 +83,7 @@ class Config
horizontalMargin = getDipPref(prefs, "horizontal_margin", horizontalMargin);
preciseRepeat = prefs.getBoolean("precise_repeat", preciseRepeat);
characterSize = prefs.getFloat("character_size", characterSize);
- accents = Integer.valueOf(prefs.getString("accents", ""));
+ accents = Integer.valueOf(prefs.getString("accents", "1"));
}
private float getDipPref(SharedPreferences prefs, String pref_name, float def)