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

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

Merge "Don't flip action bar main content and tabs"

parents 36d38cb9 32fa567b
Loading
Loading
Loading
Loading
+1 −17
Original line number Diff line number Diff line
@@ -296,24 +296,8 @@ public class ActionBarContainer extends FrameLayout {
        if (mTabContainer != null && mTabContainer.getVisibility() != GONE) {
            final int containerHeight = getMeasuredHeight();
            final int tabHeight = mTabContainer.getMeasuredHeight();

            if ((mActionBarView.getDisplayOptions() & ActionBar.DISPLAY_SHOW_HOME) == 0) {
                // Not showing home, put tabs on top.
                final int count = getChildCount();
                for (int i = 0; i < count; i++) {
                    final View child = getChildAt(i);

                    if (child == mTabContainer) continue;

                    if (!mActionBarView.isCollapsed()) {
                        child.offsetTopAndBottom(tabHeight);
                    }
                }
                mTabContainer.layout(l, 0, r, tabHeight);
            } else {
            mTabContainer.layout(l, containerHeight - tabHeight, r, containerHeight);
        }
        }

        boolean needsInvalidate = false;
        if (mIsSplit) {