abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/EmojiGridView.java
AgeCommit message (Collapse)AuthorFilesLines
2022-12-11Improve emoji pane layoutJules Aguillon1-23/+9
The measurement function was wrong in some situations. Set a width for columns and properly configure the GridView.
2022-11-13Refactor: Move editing code from to KeyEventHandlerJules Aguillon1-1/+1
Remove the code dealing with InputMethodConnection from 'Keyboard2' and move it into 'KeyEventHandler', where more editing actions can now be implemented. Autocapitalisation is also moved, the IReceiver interface is simplified.
2022-11-11Avoid crashing in direct-boot modeJules Aguillon1-4/+9
The settings activity can't open in direct-boot mode. The emoji pane opens without the "last used" data.
2022-11-11Direct-boot aware preferencesJules Aguillon1-5/+7
Store preferences in device protected storage, which is available before the device is unlocked. The keyboard was crashing when trying to access the encrypted preferences. The emoji pane uses a separate preferences file, the old data is lost. The SettingsActivity can't easily use the new preferences storage. Instead, it continues to use the "default" preferences store, which is copied back to the protected storage when needed.
2022-06-05Refactor: Make KeyValue finalJules Aguillon1-3/+3
The class has a complicated internal logic, it is no longer reasonable to extend it.
2022-06-05Refactor: Abstract KeyValue fieldsJules Aguillon1-1/+1
The meaning of the public fields of KeyValue was quite complicated and not handled consistently accross the app. Make these fields private and add a more abstract API on top. The meaning of these fields changed recently and it wasn't an easy change. I plan on making more changes in the future.
2022-06-05Stop using flags for modifiersJules Aguillon1-1/+1
There was no free bits left to add new modifiers. Instead of increasing the width of the 'flags' field, refactor the way modifiers are represented and used. Modifers are now represented as independent values and stored in the 'code' field. A flag is added to distinguish between modifiers and keys with a key event. The most notable change is that modifiers can no longer be or-ed into a single value but have to be represented as an array.
2021-12-28Use the themes abstractionJules Aguillon1-4/+1
Themes replace 'colors.xml' and soon will replace 'dimens.xml'.
2021-12-28Separate "handler" codeJules Aguillon1-9/+8
As with the previous commit, remove casts of the context. The "handler" object is referenced in the "config" object for now.
2021-12-19Auto-format Java and XML filesJules Aguillon1-148/+148
Use xmllint. Re-indent Java files using spaces.
2021-04-18Separate handling of modifiers from KeyValue classJules Aguillon1-2/+2
KeyValue defines an ADT and some of its values, it now contains public final fields and no internal logic. KeyModifier handles modifiers and accents and creates new instances of KeyValue when needed. This operation is now properly cached.
2021-01-17Update the list of emojisJules Aguillon1-4/+5
Take the list from https://unicode.org/Public/emoji/13.1/emoji-test.txt Also change the list of groups, from the same source.
2015-10-28Fix some bugs + Try to show a preview popupjaguillo1-6/+3
2015-10-27Fix crash + Fix emoji type buttonsjaguillo1-1/+1
2015-10-26More emoji category + Fix last emoji used savingjaguillo1-12/+9
2015-10-26Last used emojijaguillo1-17/+82
2015-10-24Emoji panejaguillo1-17/+26
2015-10-23Start with emojisjaguillo1-0/+107