Don't applyState if taskbar is already destroyed

Test: Open overview while unfolded, then fold; ensure hotseat remains
visible
Fixes: 260135164

Change-Id: I788a9a682a7d5fabbea7c478231fc7abe92e95b9
This commit is contained in:
Tony Wickham
2023-02-03 00:32:28 +00:00
parent 68f5667338
commit 9fb8883017
2 changed files with 7 additions and 0 deletions

View File

@@ -247,6 +247,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.