mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Several animation calls cleanup
> Using View property instead of strings to avoid extra reflection step > Using ViewPropertyAnimator when several properties are being animated Change-Id: I41625643b38b70bac11e2c81d18058ec878d73bd
This commit is contained in:
@@ -379,7 +379,6 @@ public class WorkspaceStateTransitionAnimation {
|
||||
mNewBackgroundAlphas[i] != 0) {
|
||||
ValueAnimator bgAnim = ObjectAnimator.ofFloat(cl, "backgroundAlpha",
|
||||
mOldBackgroundAlphas[i], mNewBackgroundAlphas[i]);
|
||||
LauncherAnimUtils.ofFloat(cl, 0f, 1f);
|
||||
bgAnim.setInterpolator(mZoomInInterpolator);
|
||||
bgAnim.setDuration(duration);
|
||||
mStateAnimator.play(bgAnim);
|
||||
@@ -554,8 +553,7 @@ public class WorkspaceStateTransitionAnimation {
|
||||
if (animated) {
|
||||
// These properties refer to the background protection gradient used for AllApps
|
||||
// and Widget tray.
|
||||
ValueAnimator bgFadeOutAnimation =
|
||||
LauncherAnimUtils.ofFloat(mWorkspace, startAlpha, finalAlpha);
|
||||
ValueAnimator bgFadeOutAnimation = ValueAnimator.ofFloat(startAlpha, finalAlpha);
|
||||
bgFadeOutAnimation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
|
||||
@Override
|
||||
public void onAnimationUpdate(ValueAnimator animation) {
|
||||
|
||||
Reference in New Issue
Block a user