Merge "Initialize Task surface as invisible" into tm-qpr-dev

This commit is contained in:
Tony Huang
2023-01-17 06:49:11 +00:00
committed by Android (Google) Code Review

View File

@@ -609,7 +609,7 @@ class Task extends TaskFragment {
*/ */
ActivityRecord mChildPipActivity; ActivityRecord mChildPipActivity;
boolean mLastSurfaceShowing = true; boolean mLastSurfaceShowing;
/** /**
* Tracks if a back gesture is in progress. * Tracks if a back gesture is in progress.
@@ -4197,13 +4197,7 @@ class Task extends TaskFragment {
@Override @Override
boolean showSurfaceOnCreation() { boolean showSurfaceOnCreation() {
if (mCreatedByOrganizer) { return false;
// Tasks created by the organizer are default visible because they can synchronously
// update the leash before new children are added to the task.
return true;
}
// Organized tasks handle their own surface visibility
return !canBeOrganized();
} }
@Override @Override