Fix freeform task surface is not shown
Commit d3bdc63 reuse canBeOrganized to decide whether to
show task surface on creation. But canBeOrganized doesn't
check supported type that causes the surface of freeform
(unsupported type) task not to show.
Bug: 185400889
Test: Enable freeform in developer options. Enter recents
and select freeform. The task should be visible.
Change-Id: Id534918998acf2a3c1f8c9b97fb9c8fb6b386996
This commit is contained in:
@@ -4967,7 +4967,8 @@ class Task extends WindowContainer<WindowContainer> {
|
||||
}
|
||||
|
||||
private boolean canBeOrganized() {
|
||||
if (mForceNotOrganized) {
|
||||
if (mForceNotOrganized || !mAtmService.mTaskOrganizerController
|
||||
.isSupportedWindowingMode(getWindowingMode())) {
|
||||
return false;
|
||||
}
|
||||
// All root tasks can be organized
|
||||
|
||||
Reference in New Issue
Block a user