From 9ce3ab4b8032b9fdfeaf6d0ac4066fe619389477 Mon Sep 17 00:00:00 2001 From: ThomasSession Date: Fri, 2 Aug 2024 16:31:24 +1000 Subject: [PATCH] Added a background to emoji variations popup --- .../components/emoji/EmojiVariationSelectorPopup.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/emoji/EmojiVariationSelectorPopup.java b/app/src/main/java/org/thoughtcrime/securesms/components/emoji/EmojiVariationSelectorPopup.java index 7f8282d2c6..14a901b3ba 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/emoji/EmojiVariationSelectorPopup.java +++ b/app/src/main/java/org/thoughtcrime/securesms/components/emoji/EmojiVariationSelectorPopup.java @@ -1,6 +1,7 @@ package org.thoughtcrime.securesms.components.emoji; import android.content.Context; +import android.graphics.drawable.ColorDrawable; import android.view.LayoutInflater; import android.view.ViewGroup; import android.widget.ImageView; @@ -8,6 +9,8 @@ import android.widget.PopupWindow; import androidx.annotation.NonNull; +import org.session.libsession.utilities.ThemeUtil; + import java.util.List; import network.loki.messenger.R; @@ -26,7 +29,9 @@ public class EmojiVariationSelectorPopup extends PopupWindow { this.listener = listener; this.list = (ViewGroup) getContentView(); - setBackgroundDrawable(null); + setBackgroundDrawable( + new ColorDrawable(ThemeUtil.getThemedColor(context, R.attr.colorPrimary)) + ); setOutsideTouchable(true); }