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

Commit 508a4c1d authored by Ben Lin's avatar Ben Lin Committed by Automerger Merge Worker
Browse files

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

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

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

Change-Id: Ifd2ffe1f9ff372b1b7262cfcec5795cd0ff1b855
parents e0cb7ab0 1a180247
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 {