Loading services/core/java/com/android/server/wm/Task.java +5 −0 Original line number Diff line number Diff line Loading @@ -3071,6 +3071,11 @@ class Task extends WindowContainer<WindowContainer> { focusableTask = mRootWindowContainer.getNextFocusableRootTask(this, !allowFocusSelf); } if (focusableTask == null) { final TaskDisplayArea taskDisplayArea = getDisplayArea(); if (taskDisplayArea != null) { // Clear the recorded task since there is no next focusable task. taskDisplayArea.clearPreferredTopFocusableRootTask(); } return null; } Loading services/core/java/com/android/server/wm/TaskDisplayArea.java +5 −0 Original line number Diff line number Diff line Loading @@ -143,6 +143,7 @@ final class TaskDisplayArea extends DisplayArea<WindowContainer> { * unable to resume target root task properly when there are other focusable always-on-top * root tasks. */ @VisibleForTesting Task mPreferredTopFocusableRootTask; /** Loading Loading @@ -2130,6 +2131,10 @@ final class TaskDisplayArea extends DisplayArea<WindowContainer> { && mDisplayContent.getOrientationRequestingTaskDisplayArea() == this; } void clearPreferredTopFocusableRootTask() { mPreferredTopFocusableRootTask = null; } @Override boolean isTaskDisplayArea() { return true; Loading Loading
services/core/java/com/android/server/wm/Task.java +5 −0 Original line number Diff line number Diff line Loading @@ -3071,6 +3071,11 @@ class Task extends WindowContainer<WindowContainer> { focusableTask = mRootWindowContainer.getNextFocusableRootTask(this, !allowFocusSelf); } if (focusableTask == null) { final TaskDisplayArea taskDisplayArea = getDisplayArea(); if (taskDisplayArea != null) { // Clear the recorded task since there is no next focusable task. taskDisplayArea.clearPreferredTopFocusableRootTask(); } return null; } Loading
services/core/java/com/android/server/wm/TaskDisplayArea.java +5 −0 Original line number Diff line number Diff line Loading @@ -143,6 +143,7 @@ final class TaskDisplayArea extends DisplayArea<WindowContainer> { * unable to resume target root task properly when there are other focusable always-on-top * root tasks. */ @VisibleForTesting Task mPreferredTopFocusableRootTask; /** Loading Loading @@ -2130,6 +2131,10 @@ final class TaskDisplayArea extends DisplayArea<WindowContainer> { && mDisplayContent.getOrientationRequestingTaskDisplayArea() == this; } void clearPreferredTopFocusableRootTask() { mPreferredTopFocusableRootTask = null; } @Override boolean isTaskDisplayArea() { return true; Loading