Merge "Fix surface release race when using Shell Transitions" into sc-dev am: 3e7b61b094
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14287165 Change-Id: Iedac273fbf83ab1108f63112767c9a655b45048c
This commit is contained in:
@@ -17,6 +17,8 @@ package com.android.quickstep;
|
||||
|
||||
import static android.view.WindowManager.LayoutParams.TYPE_NAVIGATION_BAR;
|
||||
|
||||
import static com.android.quickstep.TaskAnimationManager.ENABLE_SHELL_TRANSITIONS;
|
||||
|
||||
import com.android.systemui.shared.system.RemoteAnimationTargetCompat;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -97,6 +99,10 @@ public class RemoteAnimationTargets {
|
||||
}
|
||||
|
||||
public void release() {
|
||||
if (ENABLE_SHELL_TRANSITIONS) {
|
||||
mReleaseChecks.clear();
|
||||
return;
|
||||
}
|
||||
if (mReleased) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user