forked from upstream-mirrors/quik
feat(reactions): grid emoji picker, configurable quick reactions, open animation
- Fix swipe-to-react: enable stable ids on MessagesAdapter so the swipe callback resolves the swiped message (itemId was NO_ID -> lookup failed), and anchor the reaction popup independent of swipe-recovery translation so it no longer opens off-screen. - Replace the typed-text reaction "+" with a themed, scrollable emoji grid (EmojiPicker) generated from colour-emoji codepoint ranges plus a curated common set. No third-party picker, so no Guava and it follows light/dark. - Make the six quick reactions user-configurable and reorderable via a new Settings -> Quick reactions editor; the double-tap default reaction now uses the same grid picker instead of a raw text dialog. - Pulse visible reaction badges (1 -> 1.4 -> 0.9 -> 1, cascaded 0.25s) when a conversation opens with a reaction as its newest message. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -93,6 +93,10 @@ class Preferences @Inject constructor(
|
||||
const val MESSAGE_SWIPE_ACTION_DELETE = 5
|
||||
|
||||
const val DEFAULT_REACTION_EMOJI = "👍"
|
||||
|
||||
// Quick-reaction emojis shown in the reaction popup, comma separated (user reorderable)
|
||||
const val DEFAULT_QUICK_REACTIONS = "❤️,👍,👎,😂,😮,😢"
|
||||
const val QUICK_REACTIONS_COUNT = 6
|
||||
}
|
||||
|
||||
// Internal
|
||||
@@ -133,6 +137,8 @@ class Preferences @Inject constructor(
|
||||
val swipeRight = rxPrefs.getInteger("swipeRight", SWIPE_ACTION_ARCHIVE)
|
||||
val swipeLeft = rxPrefs.getInteger("swipeLeft", SWIPE_ACTION_ARCHIVE)
|
||||
val defaultReactionEmoji = rxPrefs.getString("defaultReactionEmoji", DEFAULT_REACTION_EMOJI)
|
||||
|
||||
val quickReactions = rxPrefs.getString("quickReactions", DEFAULT_QUICK_REACTIONS)
|
||||
val messageSwipeRight = rxPrefs.getInteger("messageSwipeRight", MESSAGE_SWIPE_ACTION_REACT)
|
||||
val messageSwipeLeft = rxPrefs.getInteger("messageSwipeLeft", MESSAGE_SWIPE_ACTION_REPLY)
|
||||
val autoEmoji = rxPrefs.getBoolean("autoEmoji", true)
|
||||
|
||||
Reference in New Issue
Block a user