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

This commit is contained in:
Tony Wickham authored and Android (Google) Code Review committed 2023-02-03 17:55:30 +00:00
commit 632e9a84c4
2 files changed
+7

No files matched your search

@@ -547,6 +547,10 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
}
}
public boolean isDestroyed() {
return mIsDestroyed;
}
public void updateSysuiStateFlags(int systemUiStateFlags, boolean fromInit) {
mControllers.navbarButtonsViewController.updateStateForSysuiFlags(systemUiStateFlags,
fromInit);
@@ -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.