Simplification

This commit is contained in:
M66B 2022-05-10 19:06:53 +02:00
parent 35a4726338
commit 9fad7d3d19
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ import androidx.lifecycle.OnLifecycleEvent;
public class PopupMenuLifecycle extends PopupMenu {
public PopupMenuLifecycle(@NonNull Context context, LifecycleOwner owner, @NonNull View anchor) {
super(new ContextThemeWrapper(context, R.style.popupMenuStyle), anchor);
super(context, anchor, Gravity.NO_GRAVITY, R.attr.popupMenuStyle, R.style.popupMenuStyle);
Log.i("Instantiate " + this);
owner.getLifecycle().addObserver(new LifecycleObserver() {