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

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

Merge "Fix bug 4416126 - orientation change bug with action bar overflow menu" into honeycomb-mr2

parents a429d5df 5d6c990b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -104,9 +104,7 @@ public class ActionMenuView extends LinearLayout implements MenuBuilder.ItemInvo
    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        final int screen = newConfig.screenLayout;
        mReserveOverflow = (screen & Configuration.SCREENLAYOUT_SIZE_MASK) ==
                Configuration.SCREENLAYOUT_SIZE_XLARGE;
        mReserveOverflow = newConfig.isLayoutSizeAtLeast(Configuration.SCREENLAYOUT_SIZE_LARGE);
        mMaxItems = getMaxActionButtons();
        mWidthLimit = getResources().getDisplayMetrics().widthPixels / 2;
        if (mMenu != null) {