Merge "PiP: Null-check menu view when dispatching touch events to the menu." into sc-dev
This commit is contained in:
@@ -526,6 +526,10 @@ public class PhonePipMenuController implements PipMenuController {
|
||||
* Handles a pointer event sent from pip input consumer.
|
||||
*/
|
||||
void handlePointerEvent(MotionEvent ev) {
|
||||
if (mPipMenuView == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (ev.isTouchEvent()) {
|
||||
mPipMenuView.dispatchTouchEvent(ev);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user