summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/notification/NotificationMainView.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-02-13 12:13:43 -0800
committerSunny Goyal <sunnygoyal@google.com>2017-02-16 11:19:01 -0800
commit9e76f682f3e52afa1f11172564b883c7dfda5063 (patch)
tree6e62354e0a5314ce2dea3a59850555a0ae1e220c /src/com/android/launcher3/notification/NotificationMainView.java
parenteb04b8415368ce28bacd100b8bffa85fede734a0 (diff)
downloadandroid_packages_apps_Trebuchet-9e76f682f3e52afa1f11172564b883c7dfda5063.tar.gz
android_packages_apps_Trebuchet-9e76f682f3e52afa1f11172564b883c7dfda5063.tar.bz2
android_packages_apps_Trebuchet-9e76f682f3e52afa1f11172564b883c7dfda5063.zip
Removing wrapper around ViewPropertyAnimator, and using ObjectAnimator
instead Bug: 35218222 Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d
Diffstat (limited to 'src/com/android/launcher3/notification/NotificationMainView.java')
-rw-r--r--src/com/android/launcher3/notification/NotificationMainView.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/launcher3/notification/NotificationMainView.java b/src/com/android/launcher3/notification/NotificationMainView.java
index a05fef352..b3425259b 100644
--- a/src/com/android/launcher3/notification/NotificationMainView.java
+++ b/src/com/android/launcher3/notification/NotificationMainView.java
@@ -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);