Merge "Override the fillsParent() on TaskFragment" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d43efc90ab
@@ -3158,14 +3158,6 @@ class Task extends TaskFragment {
|
|||||||
|| activityType == ACTIVITY_TYPE_ASSISTANT;
|
|| 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
|
@Override
|
||||||
void forAllLeafTasks(Consumer<Task> callback, boolean traverseTopToBottom) {
|
void forAllLeafTasks(Consumer<Task> callback, boolean traverseTopToBottom) {
|
||||||
final int count = mChildren.size();
|
final int count = mChildren.size();
|
||||||
|
|||||||
@@ -2346,6 +2346,14 @@ class TaskFragment extends WindowContainer<WindowContainer> {
|
|||||||
return true;
|
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 dump(String prefix, FileDescriptor fd, PrintWriter pw, boolean dumpAll,
|
||||||
boolean dumpClient, String dumpPackage, final boolean needSep, Runnable header) {
|
boolean dumpClient, String dumpPackage, final boolean needSep, Runnable header) {
|
||||||
boolean printed = false;
|
boolean printed = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user