mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
make popup menu respect the defined style definition by using the right context and referencing the style definition
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
39a848afa4
commit
ed2f53bff4
@ -56,6 +56,7 @@ import android.widget.RelativeLayout
|
|||||||
import android.widget.Space
|
import android.widget.Space
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import android.widget.Toast
|
import android.widget.Toast
|
||||||
|
import androidx.appcompat.view.ContextThemeWrapper
|
||||||
import androidx.core.graphics.drawable.RoundedBitmapDrawableFactory
|
import androidx.core.graphics.drawable.RoundedBitmapDrawableFactory
|
||||||
import androidx.emoji.text.EmojiCompat
|
import androidx.emoji.text.EmojiCompat
|
||||||
import androidx.emoji.widget.EmojiEditText
|
import androidx.emoji.widget.EmojiEditText
|
||||||
@ -1554,7 +1555,7 @@ class ChatController(args: Bundle) :
|
|||||||
|
|
||||||
override fun onMessageViewLongClick(view: View?, message: IMessage?) {
|
override fun onMessageViewLongClick(view: View?, message: IMessage?) {
|
||||||
PopupMenu(
|
PopupMenu(
|
||||||
this.context,
|
ContextThemeWrapper(view?.context, R.style.appActionBarPopupMenu),
|
||||||
view,
|
view,
|
||||||
if (message?.user?.id == conversationUser?.userId) Gravity.END else Gravity.START
|
if (message?.user?.id == conversationUser?.userId) Gravity.END else Gravity.START
|
||||||
).apply {
|
).apply {
|
||||||
|
Loading…
Reference in New Issue
Block a user