Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Categories can be defined for custom emojis in Mastodon.
For example on zug.network, there are over 1800 custom emojis and at least some categories have been introduced, which can be seen in the web interface like in the next screenshot. Meanwhile in Tusky the emojis can only be browsed alphabetically without categories.
In this PR I tried to group custom emojis by category and only sort alphabetically within the group, furthermore there's a kind of header for the emoji picker containing all the categories and highlighting the current one.
When scrolling the emoji grid, the header gets updated, however this bit needs to be improved to suppress this during the smooth scrolling that happens when clicking on a category:
Tusky/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeActivity.kt
Line 1276 in 9bc257d
Besides that, I'm sure some refactoring has to be done since I probably placed some of the code in inappropriate places. The idea of using empty/fake grid items might also be controversial?