Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af232ed3 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Avoid showing popup when View detatched.

Bug: 6388558
Change-Id: I12cfde91b142916ce137ebd4e96107a12ad2b4b7
parent 1e945c4f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -237,6 +237,7 @@ public abstract class BaseStatusBar extends SystemUI implements
            public boolean onLongClick(View v) {
                final String packageNameF = (String) v.getTag();
                if (packageNameF == null) return false;
                if (v.getWindowToken() == null) return false;
                PopupMenu popup = new PopupMenu(mContext, v);
                popup.getMenuInflater().inflate(R.menu.notification_popup_menu, popup.getMenu());
                popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {