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

Commit fb8ccc5e authored by Louis Chang's avatar Louis Chang Committed by Android (Google) Code Review
Browse files

Merge "Do not delay the event if the focused input target is the same" into main

parents 08b12ac0 bd45cf58
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -9036,7 +9036,8 @@ public class WindowManagerService extends IWindowManager.Stub
        // Otherwise, handle the touch-outside event directly.
        final WindowState w = t.getWindowState();
        final ActivityRecord activity = w != null ? w.getActivityRecord() : null;
        if (activity != null && activity.isEmbedded()
        if (mFocusedInputTarget != t && mFocusedInputTarget != null
                && activity != null && activity.isEmbedded()
                && activity.getTaskFragment().getAdjacentTaskFragment() != null) {
            mPointerDownOutsideFocusRunnable = () -> handlePointerDownOutsideFocus(t);
            mH.postDelayed(mPointerDownOutsideFocusRunnable, POINTER_DOWN_OUTSIDE_FOCUS_TIMEOUT_MS);