Remove use of private ValueAnimator api
Change-Id: I455edcd17bda83ab51c2c04fa40e66097a4d6975
This commit is contained in:
@@ -265,7 +265,7 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona
|
||||
onTabChangedEnd(type);
|
||||
|
||||
// Animate the transition
|
||||
ObjectAnimator outAnim = ObjectAnimator.ofFloat(mAnimationBuffer, "alpha", 0f);
|
||||
ObjectAnimator outAnim = LauncherAnimUtils.ofFloat(mAnimationBuffer, "alpha", 0f);
|
||||
outAnim.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
@@ -278,14 +278,14 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona
|
||||
mAnimationBuffer.removeAllViews();
|
||||
}
|
||||
});
|
||||
ObjectAnimator inAnim = ObjectAnimator.ofFloat(mAppsCustomizePane, "alpha", 1f);
|
||||
ObjectAnimator inAnim = LauncherAnimUtils.ofFloat(mAppsCustomizePane, "alpha", 1f);
|
||||
inAnim.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
reloadCurrentPage();
|
||||
}
|
||||
});
|
||||
AnimatorSet animSet = new AnimatorSet();
|
||||
AnimatorSet animSet = LauncherAnimUtils.createAnimatorSet();
|
||||
animSet.playTogether(outAnim, inAnim);
|
||||
animSet.setDuration(duration);
|
||||
animSet.start();
|
||||
|
||||
Reference in New Issue
Block a user