Remove use of private ValueAnimator api
Change-Id: I455edcd17bda83ab51c2c04fa40e66097a4d6975
This commit is contained in:
@@ -76,7 +76,7 @@ public class DragView extends View {
|
||||
final float scale = (width + scaleDps) / width;
|
||||
|
||||
// Animate the view into the correct position
|
||||
mAnim = ValueAnimator.ofFloat(0.0f, 1.0f);
|
||||
mAnim = LauncherAnimUtils.ofFloat(0.0f, 1.0f);
|
||||
mAnim.setDuration(150);
|
||||
mAnim.addUpdateListener(new AnimatorUpdateListener() {
|
||||
@Override
|
||||
@@ -199,7 +199,7 @@ public class DragView extends View {
|
||||
}
|
||||
|
||||
public void crossFade(int duration) {
|
||||
ValueAnimator va = ValueAnimator.ofFloat(0f, 1f);
|
||||
ValueAnimator va = LauncherAnimUtils.ofFloat(0f, 1f);
|
||||
va.setDuration(duration);
|
||||
va.setInterpolator(new DecelerateInterpolator(1.5f));
|
||||
va.addUpdateListener(new AnimatorUpdateListener() {
|
||||
|
||||
Reference in New Issue
Block a user