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

Commit 19908f58 authored by Liana Kazanova (xWF)'s avatar Liana Kazanova (xWF) Committed by Android (Google) Code Review
Browse files

Merge "Revert "Avoid calling syncInputTransactions within wm lock"" into main

parents 0eab0998 14f523be
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -9057,7 +9057,6 @@ public class WindowManagerService extends IWindowManager.Stub

        @Override
        public boolean moveFocusToAdjacentEmbeddedActivityIfNeeded() {
            boolean focusMoved = false;
            synchronized (mGlobalLock) {
                final WindowState focusedWindow = getFocusedWindow();
                if (focusedWindow == null) {
@@ -9066,14 +9065,12 @@ public class WindowManagerService extends IWindowManager.Stub

                if (moveFocusToAdjacentEmbeddedWindow(focusedWindow)) {
                    // Sync the input transactions to ensure the input focus updates as well.
                    focusMoved = true;
                }
                    syncInputTransactions(false);
                    return true;
                }

            if (focusMoved) {
                syncInputTransactions(false);
                return false;
            }
            return focusMoved;
        }

        @Override
@@ -9770,7 +9767,7 @@ public class WindowManagerService extends IWindowManager.Stub
     */
    boolean moveFocusToAdjacentEmbeddedWindow(@NonNull WindowState focusedWindow) {
        final ActivityRecord activity = focusedWindow.getActivityRecord();
        if (activity == null || !activity.isVisible()) {
        if (activity == null) {
            return false;
        }