diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/views/EmojiReactionButton.java b/mastodon/src/main/java/org/joinmastodon/android/ui/views/EmojiReactionButton.java index 27322e456c..9247a368e3 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/views/EmojiReactionButton.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/views/EmojiReactionButton.java @@ -25,7 +25,7 @@ public EmojiReactionButton(Context context, AttributeSet attrs, int defStyleAttr public boolean onTouchEvent(MotionEvent event) { // allow long click even if button is disabled int action=event.getAction(); - if(action==MotionEvent.ACTION_DOWN) + if(action==MotionEvent.ACTION_DOWN && !isEnabled()) handler.postDelayed(this::performLongClick, ViewConfiguration.getLongPressTimeout()); if(action==MotionEvent.ACTION_UP) handler.removeCallbacksAndMessages(null);