Removing some properties out of AnimationBuilder

AnimationBuilder and PendingAnimation have similar logic. This will
allow to unify the two classes

Change-Id: Id8c1d8a7020d132adbccdc6c80538ed6556cb75e
This commit is contained in:
Sunny Goyal
2020-03-06 14:52:17 -08:00
parent 8780065fdb
commit 003782f93c
14 changed files with 85 additions and 106 deletions

View File

@@ -23,7 +23,7 @@ import android.view.MotionEvent;
import com.android.launcher3.AbstractFloatingView;
import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherState;
import com.android.launcher3.LauncherStateManager.AnimationComponents;
import com.android.launcher3.LauncherStateManager.AnimationFlags;
import com.android.launcher3.userevent.nano.LauncherLogProto.ContainerType;
/**
@@ -76,7 +76,7 @@ public class AllAppsSwipeController extends AbstractStateChangeTouchController {
}
@Override
protected float initCurrentAnimation(@AnimationComponents int animComponents) {
protected float initCurrentAnimation(@AnimationFlags int animComponents) {
float range = getShiftRange();
long maxAccuracy = (long) (2 * range);
mCurrentAnimation = mLauncher.getStateManager()