abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Keyboard2.java
diff options
context:
space:
mode:
authorJules Aguillon2023-08-15 20:23:33 +0200
committerJules Aguillon2023-08-16 12:21:40 +0200
commit5822f98bbbc3b96a90ff09551de8252ca18bca22 (patch)
treeb9463b52a746149a889a7f83c0fea694bbbf6888 /srcs/juloo.keyboard2/Keyboard2.java
parent613aa283bdcab3d8d6e26fbe08aedcc49a8fe571 (diff)
downloadunexpected-keyboard-5822f98bbbc3b96a90ff09551de8252ca18bca22.tar.gz
unexpected-keyboard-5822f98bbbc3b96a90ff09551de8252ca18bca22.zip
Migrate layouts preferences
The new `layouts` preference replaces three previous preferences: layout second_layout custom_layout Add a preference migration function, which first migration is to migrate layouts into the new preference. The migration must also be called from the SettingsActivity as it might use a different preference store due to the boot-aware preference copy.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
-rw-r--r--srcs/juloo.keyboard2/Keyboard2.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java
index 92507ed..924f87b 100644
--- a/srcs/juloo.keyboard2/Keyboard2.java
+++ b/srcs/juloo.keyboard2/Keyboard2.java
@@ -93,9 +93,9 @@ public class Keyboard2 extends InputMethodService
super.onCreate();
KeyboardData.init(getResources());
SharedPreferences prefs = DirectBootAwarePreferences.get_shared_preferences(this);
- prefs.registerOnSharedPreferenceChangeListener(this);
_keyeventhandler = new KeyEventHandler(getMainLooper(), this.new Receiver());
Config.initGlobalConfig(prefs, getResources(), _keyeventhandler);
+ prefs.registerOnSharedPreferenceChangeListener(this);
_config = Config.globalConfig();
_keyboardView = (Keyboard2View)inflate_view(R.layout.keyboard);
_keyboardView.reset();