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

Commit 1a180247 authored by Ben Lin's avatar Ben Lin Committed by Android (Google) Code Review
Browse files

Merge "PiP: Null-check menu view when dispatching touch events to the menu." into sc-dev

parents 9d350e3a 623c9801
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -526,6 +526,10 @@ public class PhonePipMenuController implements PipMenuController {
     * Handles a pointer event sent from pip input consumer.
     * Handles a pointer event sent from pip input consumer.
     */
     */
    void handlePointerEvent(MotionEvent ev) {
    void handlePointerEvent(MotionEvent ev) {
        if (mPipMenuView == null) {
            return;
        }

        if (ev.isTouchEvent()) {
        if (ev.isTouchEvent()) {
            mPipMenuView.dispatchTouchEvent(ev);
            mPipMenuView.dispatchTouchEvent(ev);
        } else {
        } else {