mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Removing wrapper around ViewPropertyAnimator, and using ObjectAnimator
instead Bug: 35218222 Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
This commit is contained in:
@@ -32,7 +32,6 @@ import android.widget.TextView;
|
||||
import com.android.launcher3.ItemInfo;
|
||||
import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.LauncherAnimUtils;
|
||||
import com.android.launcher3.LauncherViewPropertyAnimator;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.graphics.IconPalette;
|
||||
import com.android.launcher3.userevent.nano.LauncherLogProto;
|
||||
@@ -102,8 +101,8 @@ public class NotificationMainView extends LinearLayout implements SwipeHelper.Ca
|
||||
setTag(new ItemInfo());
|
||||
if (animate) {
|
||||
AnimatorSet animation = LauncherAnimUtils.createAnimatorSet();
|
||||
Animator textFade = new LauncherViewPropertyAnimator(mTextView).alpha(1);
|
||||
Animator titleFade = new LauncherViewPropertyAnimator(mTitleView).alpha(1);
|
||||
Animator textFade = ObjectAnimator.ofFloat(mTextView, View.ALPHA, 1);
|
||||
Animator titleFade = ObjectAnimator.ofFloat(mTitleView, View.ALPHA, 1);
|
||||
ValueAnimator colorChange = ObjectAnimator.ofObject(mColorBackground, "color",
|
||||
mArgbEvaluator, mIconPalette.secondaryColor, mIconPalette.backgroundColor);
|
||||
animation.playTogether(textFade, titleFade, colorChange);
|
||||
|
||||
Reference in New Issue
Block a user