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

Commit 32fa567b authored by Adam Powell's avatar Adam Powell
Browse files

Don't flip action bar main content and tabs

Nobody ever used or liked this "feature" anyway. Onward and upward!

Change-Id: Ica65c413d13ddb998992c7d8761ad5134f75e4fd
parent 61e1ca68
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) {