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

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

Merge "Fix bad casts in action bars" into lmp-preview-dev

parents 303170e5 76d1466d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -588,7 +588,7 @@ public class WindowDecorActionBar extends ActionBar implements
            return;
        }

        final FragmentTransaction trans = ((View) mDecorToolbar).isInEditMode() ? null :
        final FragmentTransaction trans = mDecorToolbar.getViewGroup().isInEditMode() ? null :
                mActivity.getFragmentManager().beginTransaction().disallowAddToBackStack();

        if (mSelectedTab == tab) {
@@ -847,7 +847,7 @@ public class WindowDecorActionBar extends ActionBar implements
        mDecorToolbar.animateToVisibility(toActionMode ? View.GONE : View.VISIBLE);
        mContextView.animateToVisibility(toActionMode ? View.VISIBLE : View.GONE);
        if (mTabScrollView != null && !mDecorToolbar.hasEmbeddedTabs() &&
                isCollapsed((View) mDecorToolbar)) {
                isCollapsed(mDecorToolbar.getViewGroup())) {
            mTabScrollView.animateToVisibility(toActionMode ? View.GONE : View.VISIBLE);
        }
    }
@@ -959,7 +959,7 @@ public class WindowDecorActionBar extends ActionBar implements

            // Clear out the context mode views after the animation finishes
            mContextView.closeMode();
            ((View) mDecorToolbar).sendAccessibilityEvent(
            mDecorToolbar.getViewGroup().sendAccessibilityEvent(
                    AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
            mOverlayLayout.setHideOnContentScrollEnabled(mHideOnContentScroll);