PiP: Recheck condition to pass input to menu.

This used to be OR (pip is not stashed), but it should be AND.

Bug: 186499713
Test: Double tap on where the play button should be even when the menu
is not visible, no longer pauses

Change-Id: If8e101286ddfbb83caf0d6a85a1089e6c257f996
This commit is contained in:
Ben Lin
2021-05-11 16:23:40 -07:00
parent 0e05cb9d8b
commit dcecbaed57

View File

@@ -614,7 +614,7 @@ public class PipTouchHandler {
}
}
shouldDeliverToMenu |= !mPipBoundsState.isStashed();
shouldDeliverToMenu &= !mPipBoundsState.isStashed();
// Deliver the event to PipMenuActivity to handle button click if the menu has shown.
if (shouldDeliverToMenu) {