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

Commit 2157b9dc authored by Adam Powell's avatar Adam Powell Committed by Android Git Automerger
Browse files

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

* commit 'a082f3a05ede6ae5fa4ab64b30a77de18579264c':
  Fix bad casts in action bars
parents 910219d8 a24114e7
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);