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

Commit 456f24df authored by Jorge Gil's avatar Jorge Gil Committed by Automerger Merge Worker
Browse files

Merge "Only show Pip actions when menu is FULL (i.e. shown)" into sc-dev am: f2abb387

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13464839

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1e16844b1e4ffa7fbc6438b58ae4fc52074f6f62
parents 1fbfc481 f2abb387
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -231,7 +231,6 @@ public class PipMenuView extends FrameLayout {
                    && (mMenuState == MENU_STATE_FULL || menuState == MENU_STATE_FULL);
            mAllowTouches = !disallowTouchesUntilAnimationEnd;
            cancelDelayedHide();
            updateActionViews(stackBounds);
            if (mMenuContainerAnimator != null) {
                mMenuContainerAnimator.cancel();
            }
@@ -280,6 +279,7 @@ public class PipMenuView extends FrameLayout {
                setVisibility(VISIBLE);
                mMenuContainerAnimator.start();
            }
            updateActionViews(stackBounds);
        } else {
            // If we are already visible, then just start the delayed dismiss and unregister any
            // existing input consumers from the previous drag
@@ -395,7 +395,7 @@ public class PipMenuView extends FrameLayout {
            return true;
        });

        if (mActions.isEmpty() || mMenuState == MENU_STATE_CLOSE) {
        if (mActions.isEmpty() || mMenuState == MENU_STATE_CLOSE || mMenuState == MENU_STATE_NONE) {
            actionsContainer.setVisibility(View.INVISIBLE);
        } else {
            actionsContainer.setVisibility(View.VISIBLE);