Loading services/core/java/com/android/server/wm/WindowManagerService.java +6 −1 Original line number Original line Diff line number Diff line Loading @@ -9444,8 +9444,13 @@ public class WindowManagerService extends IWindowManager.Stub * Returns {@code true} if the focused window is changed. Otherwise, returns {@code false}. * Returns {@code true} if the focused window is changed. Otherwise, returns {@code false}. */ */ boolean moveFocusToAdjacentEmbeddedWindow(@NonNull WindowState focusedWindow) { boolean moveFocusToAdjacentEmbeddedWindow(@NonNull WindowState focusedWindow) { final ActivityRecord activity = focusedWindow.getActivityRecord(); if (activity == null) { return false; } final ActivityRecord mostRecentActivityInAdjacent = getMostRecentActivityInAdjacent( final ActivityRecord mostRecentActivityInAdjacent = getMostRecentActivityInAdjacent( focusedWindow.getActivityRecord()); activity); moveFocusToActivity(mostRecentActivityInAdjacent); moveFocusToActivity(mostRecentActivityInAdjacent); return !focusedWindow.isFocused(); return !focusedWindow.isFocused(); Loading Loading
services/core/java/com/android/server/wm/WindowManagerService.java +6 −1 Original line number Original line Diff line number Diff line Loading @@ -9444,8 +9444,13 @@ public class WindowManagerService extends IWindowManager.Stub * Returns {@code true} if the focused window is changed. Otherwise, returns {@code false}. * Returns {@code true} if the focused window is changed. Otherwise, returns {@code false}. */ */ boolean moveFocusToAdjacentEmbeddedWindow(@NonNull WindowState focusedWindow) { boolean moveFocusToAdjacentEmbeddedWindow(@NonNull WindowState focusedWindow) { final ActivityRecord activity = focusedWindow.getActivityRecord(); if (activity == null) { return false; } final ActivityRecord mostRecentActivityInAdjacent = getMostRecentActivityInAdjacent( final ActivityRecord mostRecentActivityInAdjacent = getMostRecentActivityInAdjacent( focusedWindow.getActivityRecord()); activity); moveFocusToActivity(mostRecentActivityInAdjacent); moveFocusToActivity(mostRecentActivityInAdjacent); return !focusedWindow.isFocused(); return !focusedWindow.isFocused(); Loading