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

Commit 019eb662 authored by Antonio Kantek's avatar Antonio Kantek
Browse files

Update TODO bug in setInTouchMode

Bug: 218541064
Test: atest inputflinger_tests
Change-Id: If00d7c197ea6bf88111a13d2661d0641ce65aed6
parent 08d8e537
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4920,7 +4920,7 @@ bool InputDispatcher::setInTouchMode(bool inTouchMode, int32_t pid, int32_t uid,
            const sp<IBinder> focusedToken =
                    mFocusResolver.getFocusedWindowToken(mFocusedDisplayId);

            //  TODO(b/198487159): if no window is currently focused, then we need to check the last
            //  TODO(b/218541064): if no window is currently focused, then we need to check the last
            //      interacted window (within 1 second timeout). We should allow touch mode change
            //      if the last interacted window owner's pid/uid match the calling ones.
            if (focusedToken == nullptr) {