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

Commit 875547e9 authored by Merissa Mitchell's avatar Merissa Mitchell
Browse files

[PIP2] Hide PiP menu when PiP is moved or resized.

Recall: http://recall/clips/a108d098-fea6-4fb7-b5e5-5acf0b0392be

Bug: 322548939
Test: Launch PiP and manually verify menu is hidden when PiP is moved or
resized.
Flag: com.android.wm.shell.enable_pip2

Change-Id: I14b726e9c96a31822e3baf5a3f06b1c7d9462739
parent 4f0aee42
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -598,6 +598,13 @@ public class PhonePipMenuController implements PipMenuController,
                break;
                break;
            case PipTransitionState.CHANGED_PIP_BOUNDS:
            case PipTransitionState.CHANGED_PIP_BOUNDS:
                updateMenuLayout(mPipBoundsState.getBounds());
                updateMenuLayout(mPipBoundsState.getBounds());
                hideMenu();
                break;
            case PipTransitionState.CHANGING_PIP_BOUNDS:
                hideMenu();
                break;
            case PipTransitionState.SCHEDULED_BOUNDS_CHANGE:
                hideMenu();
                break;
                break;
        }
        }
    }
    }