Merge "Do not capture activity snapshot if starting window is associated to task." into udc-dev am: 1b84c35905 am: eedf2a081c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24016743 Change-Id: I90ae43a313d089061d3862203cbf52db73392d80 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -723,6 +723,14 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
|
||||
mFlags |= WindowManager.TRANSIT_FLAG_INVISIBLE;
|
||||
return;
|
||||
}
|
||||
// Activity doesn't need to capture snapshot if the starting window has associated to task.
|
||||
if (wc.asActivityRecord() != null) {
|
||||
final ActivityRecord activityRecord = wc.asActivityRecord();
|
||||
if (activityRecord.mStartingData != null
|
||||
&& activityRecord.mStartingData.mAssociatedTask != null) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (mContainerFreezer == null) {
|
||||
mContainerFreezer = new ScreenshotFreezer();
|
||||
|
||||
Reference in New Issue
Block a user