abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/CustomExtraKeysPreference.java
AgeCommit message (Collapse)AuthorFilesLines
2023-09-15Refactor: Preferred positions for extra keysJules Aguillon1-4/+6
The new PreferredPos class represents where an extra key should be placed Currently used to place keys at the same positions they were placed before.
2023-08-16CustomExtraKeysPreference: Reusable edit text layoutJules Aguillon1-4/+3
This layout is generically used by CustomExtraKeysPreference and LayoutsPreference.
2023-08-16ListGroupPreference: Make items abstractJules Aguillon1-3/+10
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-29Refactor: Split out ListGroupPreferenceJules Aguillon1-139/+23
Split out the implementation of a string-list preference from CustomExtraKeysPreference. Allows to share the implementation with future preferences.
2023-07-19Refactor: Centralize logging in a static classJules Aguillon1-1/+4
This new class will help write more logs. The LogPrinter is no longer created everytime the keyboard is opened. An error log is added if failing to load the custom extra keys.
2023-07-19Add custom extra keys preferenceJules Aguillon1-0/+174
This is a new section in the extra keys option that allows to enter arbitrary strings which are then added to the keyboard. A new string is needed for the title of the section, Android's icons and strings are used as much as possible to avoid adding more strings. Keys are stored in the preferences as a JSON array of strings.