mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Merge "Add null check before updating animation progress" into ub-launcher3-rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c936fe1146
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user