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

Commit 87536679 authored by Fengjiang Li's avatar Fengjiang Li
Browse files

Fix NPE of touch handling in StatusBarTouchController#onControllerInterceptTouchEvent

Postsubmit passes: https://android-build.corp.google.com/builds/abtd/run/L20300030001590062

Test: presubmit
Flag: NONE
Fix: 282945183
Change-Id: Idcf87f8cd45350c4876ea8b1ae2dffa5127bf27f
parent e49c26dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ public class StatusBarTouchController implements TouchController {
        if (!mCanIntercept) {
            return false;
        }
        if (action == ACTION_MOVE) {
        if (action == ACTION_MOVE && mDownEvents.contains(pid)) {
            float dy = ev.getY(idx) - mDownEvents.get(pid).y;
            float dx = ev.getX(idx) - mDownEvents.get(pid).x;
            if (mIsTrackpadReverseScroll) {