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

Commit e74df9eb authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am a549218e: Merge "Avoid showing popup when View detatched." into jb-dev

* commit 'a549218e':
  Avoid showing popup when View detatched.
parents 7c3e7ad2 a549218e
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() {