diff options
author | Marcel Hibbe <dev@mhibbe.de> | 2022-04-08 18:11:40 +0300 |
---|---|---|
committer | Marcel Hibbe <dev@mhibbe.de> | 2022-04-08 18:11:40 +0300 |
commit | 7dd7738c04a8de31ad3788ed9e23c000cd91b532 (patch) | |
tree | 0a31f6ca4eaaaea6f7a4e73574216b9409e74d74 | |
parent | 17a8c48078bbcbbcf6e9d9ca4aac5c4f918c8b50 (diff) |
use toggle for emoji popup
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
-rw-r--r-- | app/src/main/java/com/nextcloud/talk/ui/dialog/MessageActionsDialog.kt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/src/main/java/com/nextcloud/talk/ui/dialog/MessageActionsDialog.kt b/app/src/main/java/com/nextcloud/talk/ui/dialog/MessageActionsDialog.kt index 95c643b52..4df9366ba 100644 --- a/app/src/main/java/com/nextcloud/talk/ui/dialog/MessageActionsDialog.kt +++ b/app/src/main/java/com/nextcloud/talk/ui/dialog/MessageActionsDialog.kt @@ -93,11 +93,7 @@ class MessageActionsDialog( private fun initEmojiMore() { dialogMessageActionsBinding.emojiMore.setOnTouchListener { v, event -> if (event.action == MotionEvent.ACTION_DOWN) { - if (popup.isShowing) { - popup.dismiss() - } else { - popup.show() - } + popup.toggle() } true } |