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 committed 2023-02-03 01:00:21 +00:00
1 parent 68f5667338
commit 9fb8883017
2 files changed
+7

No files matched your search

@@ -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.