diff options
| author | 2021-04-05 22:40:59 +0000 | |
|---|---|---|
| committer | 2021-04-05 22:40:59 +0000 | |
| commit | 1a1802477cd7c1932ca22dece6abffdb186fed2e (patch) | |
| tree | 05fd835ceef2a78c80ef451c16cc3cbd8176be93 /libs | |
| parent | 9d350e3a06e81adc189f0a9afffe89729c8b51c3 (diff) | |
| parent | 623c9801d0f16f3f0f943e6c1d29b5df945412b9 (diff) | |
Merge "PiP: Null-check menu view when dispatching touch events to the menu." into sc-dev
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PhonePipMenuController.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PhonePipMenuController.java b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PhonePipMenuController.java index 65f3d3a92476..4cf8ab476865 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PhonePipMenuController.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/PhonePipMenuController.java @@ -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 { |