From 4669192a01cacba288b5fdd3671ad7c8db9df7d8 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 9 Jul 2023 18:06:12 +0200 Subject: Refactor: Don't define extra keys in xml The current approach is hard to maintain, for example the last key "autofill" was not displayed. This implements a PreferenceGroup that contains the check boxes for every extra keys without involving listing the preferences in settings.xml. A custom layout is used to remove the 'title' text view. The list of extra keys is moved into the new class. 'ExtraKeyCheckBoxPreference' becomes a nested class. --- srcs/juloo.keyboard2/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'srcs/juloo.keyboard2/Config.java') diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 2c48b3f..1bc406c 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -154,7 +154,7 @@ final class Config theme = getThemeId(res, _prefs.getString("theme", "")); autocapitalisation = _prefs.getBoolean("autocapitalisation", true); switch_input_immediate = _prefs.getBoolean("switch_input_immediate", false); - extra_keys_param = ExtraKeyCheckBoxPreference.get_extra_keys(_prefs); + extra_keys_param = ExtraKeysPreference.get_extra_keys(_prefs); } KeyValue action_key() -- cgit v1.2.3