diff options
author | Christine Chen <christinech@google.com> | 2013-09-26 19:38:31 -0700 |
---|---|---|
committer | Christine Chen <christinech@google.com> | 2013-09-26 19:39:13 -0700 |
commit | fe3fbd24097c51290b189f2788059c4083dd90a1 (patch) | |
tree | a27e50f2d80be9d491eb222fa1036fe452284a8f /src | |
parent | 08f732988fa1681def754f2e56053599eca77ffd (diff) |
Revert no favorite card background change
Bug: 10862541
Change-Id: I52cbb8b2cfce90c315e42e89935fc7225f8d39fc
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/list/PhoneFavoriteFragment.java | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/src/com/android/dialer/list/PhoneFavoriteFragment.java b/src/com/android/dialer/list/PhoneFavoriteFragment.java index aa81858f3..828ca70d4 100644 --- a/src/com/android/dialer/list/PhoneFavoriteFragment.java +++ b/src/com/android/dialer/list/PhoneFavoriteFragment.java @@ -314,43 +314,7 @@ public class PhoneFavoriteFragment extends Fragment implements OnItemClickListen final int newVisibility = visible ? View.VISIBLE : View.GONE; if (previousVisibility != newVisibility) { - Integer colorFrom = visible ? - getResources().getColor(R.color.background_dialer_light) : - getResources().getColor(R.color.nofavorite_background_color); - Integer colorTo = visible ? - getResources().getColor(R.color.nofavorite_background_color) : - getResources().getColor(R.color.background_dialer_light); - ValueAnimator colorAnimation = ValueAnimator.ofObject(new ArgbEvaluator(), - colorFrom, colorTo); - colorAnimation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { - @Override - public void onAnimationUpdate(ValueAnimator animator) { - mParentView.setBackgroundColor((Integer)animator.getAnimatedValue()); - } - }); - colorAnimation.addListener(new Animator.AnimatorListener() { - @Override - public void onAnimationStart(Animator animator) { - if (!visible) { - mEmptyView.setVisibility(View.GONE); - } - } - - @Override - public void onAnimationEnd(Animator animator) { - if (visible) { - mEmptyView.setVisibility(View.VISIBLE); - } - } - - @Override - public void onAnimationCancel(Animator animator) {} - - @Override - public void onAnimationRepeat(Animator animator) {} - }); - - colorAnimation.start(); + mEmptyView.setVisibility(newVisibility); } } |