diff options
| author | Jules Aguillon | 2023-08-15 20:23:33 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-08-16 12:21:40 +0200 |
| commit | 5822f98bbbc3b96a90ff09551de8252ca18bca22 (patch) | |
| tree | b9463b52a746149a889a7f83c0fea694bbbf6888 /srcs/juloo.keyboard2/Keyboard2.java | |
| parent | 613aa283bdcab3d8d6e26fbe08aedcc49a8fe571 (diff) | |
| download | unexpected-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.java | 2 |
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(); |
