Merge "Fix surface release race when using Shell Transitions" into sc-dev
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