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

Commit 06195e27 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Merge cherrypicks of ['googleplex-android-review.googlesource.com/30812348'] into 25Q1-release.

Change-Id: I0c3098d88be250fb77c7472dc5c50c04fe1a6180
parents a3528ede 48d98b86
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -9142,9 +9142,13 @@ public class WindowManagerService extends IWindowManager.Stub

    private void handlePointerDownOutsideFocus(InputTarget t, InputTarget focusedInputTarget) {
        synchronized (mGlobalLock) {
            if (mFocusedInputTarget != focusedInputTarget) {
                // Skip if the mFocusedInputTarget is already changed. This is possible if the
                // pointer-down-outside-focus event is delayed to be handled.
            final WindowState w = t.getWindowState();
            // Skip if the mFocusedInputTarget is already changed or the touched Activity is no
            // longer visible. This is possible if the pointer-down-outside-focus event is
            // delayed to be handled.
            if (mFocusedInputTarget != focusedInputTarget || (w != null
                    && w.getActivityRecord() != null
                    && !w.getActivityRecord().isVisibleRequested())) {
                ProtoLog.i(WM_DEBUG_FOCUS_LIGHT,
                        "Skip onPointerDownOutsideFocusLocked due to input target changed %s", t);
                return;
@@ -9156,7 +9160,6 @@ public class WindowManagerService extends IWindowManager.Stub
            }
            clearPointerDownOutsideFocusRunnable();

            final WindowState w = t.getWindowState();
            if (w != null) {
                final Task task = w.getTask();
                if (task != null && w.mTransitionController.isTransientHide(task)) {