Merge "Add null check before updating animation progress" into ub-launcher3-rvc-dev

This commit is contained in:
TreeHugger Robot
2020-06-10 21:51:45 +00:00
committed by Android (Google) Code Review

View File

@@ -310,6 +310,9 @@ public abstract class AbstractStateChangeTouchController
}
protected void updateProgress(float fraction) {
if (mCurrentAnimation == null) {
return;
}
mCurrentAnimation.setPlayFraction(fraction);
if (mAtomicComponentsController != null) {
// Make sure we don't divide by 0, and have at least a small runway.