mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-17 21:47:28 +00:00
Fix emoji variation selector on older devices.
Weird platform-specific bug was preventing the display of the PopupWindow.
This commit is contained in:
parent
4ebca9ddde
commit
446585ad68
@ -20,12 +20,13 @@ public class EmojiVariationSelectorPopup extends PopupWindow {
|
|||||||
private final EmojiSelectionListener listener;
|
private final EmojiSelectionListener listener;
|
||||||
|
|
||||||
public EmojiVariationSelectorPopup(@NonNull Context context, @NonNull EmojiSelectionListener listener) {
|
public EmojiVariationSelectorPopup(@NonNull Context context, @NonNull EmojiSelectionListener listener) {
|
||||||
super(context);
|
super(LayoutInflater.from(context).inflate(R.layout.emoji_variation_selector, null),
|
||||||
|
ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||||
|
ViewGroup.LayoutParams.WRAP_CONTENT);
|
||||||
this.context = context;
|
this.context = context;
|
||||||
this.listener = listener;
|
this.listener = listener;
|
||||||
this.list = (ViewGroup) LayoutInflater.from(context).inflate(R.layout.emoji_variation_selector, null);
|
this.list = (ViewGroup) getContentView();
|
||||||
|
|
||||||
setContentView(list);
|
|
||||||
setBackgroundDrawable(null);
|
setBackgroundDrawable(null);
|
||||||
setOutsideTouchable(true);
|
setOutsideTouchable(true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user