Merge "SysUI: Don't try to put non-resizeable task in split-screen" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
28970f1138
@@ -180,12 +180,17 @@ public class WindowManagerProxy {
|
|||||||
if (isHomeOrRecentTask(rootTask)) {
|
if (isHomeOrRecentTask(rootTask)) {
|
||||||
tiles.mHomeAndRecentsSurfaces.add(rootTask.token.getLeash());
|
tiles.mHomeAndRecentsSurfaces.add(rootTask.token.getLeash());
|
||||||
}
|
}
|
||||||
|
// Only move resizeable task to split secondary. WM will just ignore this anyways...
|
||||||
|
if (!rootTask.isResizable()) continue;
|
||||||
|
// Only move fullscreen tasks to split secondary.
|
||||||
if (rootTask.configuration.windowConfiguration.getWindowingMode()
|
if (rootTask.configuration.windowConfiguration.getWindowingMode()
|
||||||
!= WINDOWING_MODE_FULLSCREEN) {
|
!= WINDOWING_MODE_FULLSCREEN) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
wct.reparent(rootTask.token, tiles.mSecondary.token, true /* onTop */);
|
wct.reparent(rootTask.token, tiles.mSecondary.token, true /* onTop */);
|
||||||
}
|
}
|
||||||
|
// Move the secondary split-forward.
|
||||||
|
wct.reorder(tiles.mSecondary.token, true /* onTop */);
|
||||||
boolean isHomeResizable = applyHomeTasksMinimized(layout, null /* parent */, wct);
|
boolean isHomeResizable = applyHomeTasksMinimized(layout, null /* parent */, wct);
|
||||||
WindowOrganizer.applyTransaction(wct);
|
WindowOrganizer.applyTransaction(wct);
|
||||||
return isHomeResizable;
|
return isHomeResizable;
|
||||||
|
|||||||
Reference in New Issue
Block a user