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. --- res/xml/settings.xml | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) (limited to 'res/xml/settings.xml') diff --git a/res/xml/settings.xml b/res/xml/settings.xml index 322bf4d..f57d58a 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -7,42 +7,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + -- cgit v1.2.3