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

Commit c831e319 authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Fix bug 3382994 - android.view.WindowManager$BadTokenException" into honeycomb

parents 5b9936f6 55767443
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ public class ActionMenuView extends LinearLayout implements MenuBuilder.ItemInvo
    
    private Drawable mDivider;

    private Runnable mShowOverflow = new Runnable() {
    private final Runnable mShowOverflow = new Runnable() {
        public void run() {
            showOverflowMenu();
        }
@@ -128,6 +128,10 @@ public class ActionMenuView extends LinearLayout implements MenuBuilder.ItemInvo
        if (mOverflowPopup != null && mOverflowPopup.isShowing()) {
            mOverflowPopup.dismiss();
        }
        removeCallbacks(mShowOverflow);
        if (mPostedOpenRunnable != null) {
            removeCallbacks(mPostedOpenRunnable);
        }
    }

    private int getMaxActionButtons() {