Merge "Initialize Task surface as invisible" into tm-qpr-dev am: 41aeadba75 am: f831c1af97
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20738769 Change-Id: I42a95fae51338dccfa85950e85be914380ea7149 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -610,7 +610,7 @@ class Task extends TaskFragment {
|
||||
*/
|
||||
ActivityRecord mChildPipActivity;
|
||||
|
||||
boolean mLastSurfaceShowing = true;
|
||||
boolean mLastSurfaceShowing;
|
||||
|
||||
boolean mAlignActivityLocaleWithTask = false;
|
||||
|
||||
@@ -4131,13 +4131,7 @@ class Task extends TaskFragment {
|
||||
|
||||
@Override
|
||||
boolean showSurfaceOnCreation() {
|
||||
if (mCreatedByOrganizer) {
|
||||
// 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();
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user