Merge "Override the fillsParent() on TaskFragment" into sc-v2-dev am: d43efc90ab am: d7cade364e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16418524

Change-Id: Id4e301bcfaa2994f07ac356e55ff757147a6b88d
This commit is contained in:
TreeHugger Robot
2021-12-09 07:58:09 +00:00
committed by Automerger Merge Worker
2 changed files with 8 additions and 8 deletions

View File

@@ -3114,14 +3114,6 @@ class Task extends TaskFragment {
|| activityType == ACTIVITY_TYPE_ASSISTANT;
}
@Override
boolean fillsParent() {
// From the perspective of policy, we still want to report that this task fills parent
// in fullscreen windowing mode even it doesn't match parent bounds because there will be
// letterbox around its real content.
return getWindowingMode() == WINDOWING_MODE_FULLSCREEN || matchParentBounds();
}
@Override
void forAllLeafTasks(Consumer<Task> callback, boolean traverseTopToBottom) {
final int count = mChildren.size();

View File

@@ -2342,6 +2342,14 @@ class TaskFragment extends WindowContainer<WindowContainer> {
return true;
}
@Override
boolean fillsParent() {
// From the perspective of policy, we still want to report that this task fills parent
// in fullscreen windowing mode even it doesn't match parent bounds because there will be
// letterbox around its real content.
return getWindowingMode() == WINDOWING_MODE_FULLSCREEN || matchParentBounds();
}
boolean dump(String prefix, FileDescriptor fd, PrintWriter pw, boolean dumpAll,
boolean dumpClient, String dumpPackage, final boolean needSep, Runnable header) {
boolean printed = false;