Merge "Fix Overview crash with 3 button navigation when animation is disabled" into main

This commit is contained in:
Treehugger Robot authored and Android (Google) Code Review committed 2024-09-05 16:41:00 +00:00
commit 40de6c4c12
1 file changed
+2 -2
@@ -253,7 +253,7 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>,
if (mConfig.currentAnimation == null) {
// Run any queued runnable
if (listener != null) {
listener.onAnimationEnd(null);
listener.onAnimationEnd(new AnimatorSet());
}
return;
} else if ((!mConfig.isUserControlled() && animated && mConfig.targetState == state)
@@ -282,7 +282,7 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>,
// Run any queued runnable
if (listener != null) {
listener.onAnimationEnd(null);
listener.onAnimationEnd(new AnimatorSet());
}
return;
}