abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/ListGroupPreference.java
AgeCommit message (Collapse)AuthorFilesLines
2024-01-13Refactor: New namespace for preference classesJules Aguillon1-293/+0
2023-08-16Migrate layouts preferencesJules Aguillon1-1/+11
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.
2023-08-16LayoutsPreference: Remove cross button for custom layoutsJules Aguillon1-7/+17
Remove the cross button on the right of custom layouts to reduce accidental removal. A remove button is added in the dialog for modifying the layout.
2023-08-16LayoutsPreference: Modify custom layoutJules Aguillon1-2/+7
Clicking on a custom layout opens a dialog for modifying the layout description instead of the dialog for selecting a layout.
2023-08-16ListGroupPreference: Fix change itemsJules Aguillon1-11/+12
[Preference.onClick] is apparently not called on [Item]s, though it is on [AddButton]. Workaround this by listening on click events on the view.
2023-08-16ListGroupPreference.Serializer: Allow exceptionsJules Aguillon1-3/+9
(De)serializing might raise exceptions, which are handled by dropping the failing item.
2023-08-16ListGroupPreference: Make items abstractJules Aguillon1-30/+53
Allow items to be of any class instead of strings. Item serialization and deserialization methods are in a separate class because they are also used in a static context.
2023-07-30ListGroupPreference: Allow to modify itemsJules Aguillon1-7/+25
2023-07-30ListGroupPreference: Allow hide the "remove" buttonJules Aguillon1-9/+21
2023-07-30ListGroupPreference: Overrideable "add" buttonJules Aguillon1-2/+17
2023-07-29Refactor: Split out ListGroupPreferenceJules Aguillon1-0/+193
Split out the implementation of a string-list preference from CustomExtraKeysPreference. Allows to share the implementation with future preferences.