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.TextView
|
||||
import android.widget.Toast
|
||||
import androidx.appcompat.view.ContextThemeWrapper
|
||||
import androidx.core.graphics.drawable.RoundedBitmapDrawableFactory
|
||||
import androidx.emoji.text.EmojiCompat
|
||||
import androidx.emoji.widget.EmojiEditText
|
||||
@ -1554,7 +1555,7 @@ class ChatController(args: Bundle) :
|
||||
|
||||
override fun onMessageViewLongClick(view: View?, message: IMessage?) {
|
||||
PopupMenu(
|
||||
this.context,
|
||||
ContextThemeWrapper(view?.context, R.style.appActionBarPopupMenu),
|
||||
view,
|
||||
if (message?.user?.id == conversationUser?.userId) Gravity.END else Gravity.START
|
||||
).apply {
|
||||
|
Loading…
Reference in New Issue
Block a user