Merge "Keep top fullscreen tasks on top when dismiss splits"
This commit is contained in:
committed by
Android (Google) Code Review
commit
23ef82f4de
@@ -1294,7 +1294,13 @@ final class TaskDisplayArea extends DisplayArea<Task> {
|
||||
}
|
||||
|
||||
void onSplitScreenModeDismissed() {
|
||||
onSplitScreenModeDismissed(null /* toTop */);
|
||||
// The focused task could be a non-resizeable fullscreen root task that is on top of the
|
||||
// other split-screen tasks, therefore had to dismiss split-screen, make sure the current
|
||||
// focused root task can still be on top after dismissal
|
||||
final Task rootTask = getFocusedStack();
|
||||
final Task toTop =
|
||||
rootTask != null && !rootTask.inSplitScreenWindowingMode() ? rootTask : null;
|
||||
onSplitScreenModeDismissed(toTop);
|
||||
}
|
||||
|
||||
void onSplitScreenModeDismissed(Task toTop) {
|
||||
|
||||
Reference in New Issue
Block a user