mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
use toggle for emoji popup
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
17a8c48078
commit
7dd7738c04
@ -93,11 +93,7 @@ class MessageActionsDialog(
|
|||||||
private fun initEmojiMore() {
|
private fun initEmojiMore() {
|
||||||
dialogMessageActionsBinding.emojiMore.setOnTouchListener { v, event ->
|
dialogMessageActionsBinding.emojiMore.setOnTouchListener { v, event ->
|
||||||
if (event.action == MotionEvent.ACTION_DOWN) {
|
if (event.action == MotionEvent.ACTION_DOWN) {
|
||||||
if (popup.isShowing) {
|
popup.toggle()
|
||||||
popup.dismiss()
|
|
||||||
} else {
|
|
||||||
popup.show()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user