Merge "Don't applyState if taskbar is already destroyed" into tm-qpr-dev

This commit is contained in:
Tony Wickham
2023-02-03 17:55:30 +00:00
committed by Android (Google) Code Review
2 changed files with 7 additions and 0 deletions

View File

@@ -249,6 +249,9 @@ import java.util.StringJoiner;
}
public Animator applyState(long duration, boolean start) {
if (mControllers.taskbarActivityContext.isDestroyed()) {
return null;
}
Animator animator = null;
if (mPrevState == null || mPrevState != mState) {
// If this is our initial state, treat all flags as changed.