Loading services/core/java/com/android/server/wm/WindowManagerService.java +7 −4 Original line number Diff line number Diff line Loading @@ -9057,6 +9057,7 @@ public class WindowManagerService extends IWindowManager.Stub @Override public boolean moveFocusToAdjacentEmbeddedActivityIfNeeded() { boolean focusMoved = false; synchronized (mGlobalLock) { final WindowState focusedWindow = getFocusedWindow(); if (focusedWindow == null) { Loading @@ -9065,12 +9066,14 @@ public class WindowManagerService extends IWindowManager.Stub if (moveFocusToAdjacentEmbeddedWindow(focusedWindow)) { // Sync the input transactions to ensure the input focus updates as well. syncInputTransactions(false); return true; focusMoved = true; } } return false; if (focusMoved) { syncInputTransactions(false); } return focusMoved; } @Override Loading Loading @@ -9767,7 +9770,7 @@ public class WindowManagerService extends IWindowManager.Stub */ boolean moveFocusToAdjacentEmbeddedWindow(@NonNull WindowState focusedWindow) { final ActivityRecord activity = focusedWindow.getActivityRecord(); if (activity == null) { if (activity == null || !activity.isVisible()) { return false; } Loading Loading
services/core/java/com/android/server/wm/WindowManagerService.java +7 −4 Original line number Diff line number Diff line Loading @@ -9057,6 +9057,7 @@ public class WindowManagerService extends IWindowManager.Stub @Override public boolean moveFocusToAdjacentEmbeddedActivityIfNeeded() { boolean focusMoved = false; synchronized (mGlobalLock) { final WindowState focusedWindow = getFocusedWindow(); if (focusedWindow == null) { Loading @@ -9065,12 +9066,14 @@ public class WindowManagerService extends IWindowManager.Stub if (moveFocusToAdjacentEmbeddedWindow(focusedWindow)) { // Sync the input transactions to ensure the input focus updates as well. syncInputTransactions(false); return true; focusMoved = true; } } return false; if (focusMoved) { syncInputTransactions(false); } return focusMoved; } @Override Loading Loading @@ -9767,7 +9770,7 @@ public class WindowManagerService extends IWindowManager.Stub */ boolean moveFocusToAdjacentEmbeddedWindow(@NonNull WindowState focusedWindow) { final ActivityRecord activity = focusedWindow.getActivityRecord(); if (activity == null) { if (activity == null || !activity.isVisible()) { return false; } Loading