abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Config.java
diff options
context:
space:
mode:
authorJules Aguillon2022-07-24 23:44:37 +0200
committerJules Aguillon2022-07-24 23:44:37 +0200
commit081e9a6e531a34bb1639c2527f315c0be966e5d7 (patch)
tree4bb75abe59785809950a5287fd6ac94c7046cb3d /srcs/juloo.keyboard2/Config.java
parentbfde31da6e74aa57e3bcd6f2985fd4588bd48814 (diff)
downloadunexpected-keyboard-081e9a6e531a34bb1639c2527f315c0be966e5d7.tar.gz
unexpected-keyboard-081e9a6e531a34bb1639c2527f315c0be966e5d7.zip
Add an option to control auto capitalisation
Diffstat (limited to 'srcs/juloo.keyboard2/Config.java')
-rw-r--r--srcs/juloo.keyboard2/Config.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java
index 258cbc9..2ab044d 100644
--- a/srcs/juloo.keyboard2/Config.java
+++ b/srcs/juloo.keyboard2/Config.java
@@ -39,6 +39,7 @@ final class Config
public float characterSize; // Ratio
public int accents; // Values are R.values.pref_accents_v_*
public int theme; // Values are R.style.*
+ public boolean autocapitalisation;
// Dynamically set
public boolean shouldOfferSwitchingToNextInputMethod;
@@ -146,6 +147,7 @@ final class Config
* characterSizeScale;
accents = Integer.valueOf(prefs.getString("accents", "1"));
theme = getThemeId(res, prefs.getString("theme", ""));
+ autocapitalisation = prefs.getBoolean("autocapitalisation", true);
}
/** Update the layout according to the configuration.