commit | 3687ef81abae92315133fac3401e64f2b5f8ea8c | [log] [tgz] |
---|---|---|
author | Dmitri Plotnikov <dplotnikov@google.com> | Thu Nov 11 16:10:27 2010 -0800 |
committer | Dmitri Plotnikov <dplotnikov@google.com> | Thu Nov 11 16:10:37 2010 -0800 |
tree | 0ce20fbf64d0e427c9d488daa5e4c44c0be5a8cc | |
parent | 1139c7ac47f2814c881c0e88972ad7c33fe5a5ad [diff] |
Fading in photo only when going from empty state Bug: 3172509 Change-Id: I902d910c85c4d05168da5de19000ec5601421b88
diff --git a/src/com/android/contacts/views/detail/ContactDetailHeaderView.java b/src/com/android/contacts/views/detail/ContactDetailHeaderView.java index 6a79719..c293060 100644 --- a/src/com/android/contacts/views/detail/ContactDetailHeaderView.java +++ b/src/com/android/contacts/views/detail/ContactDetailHeaderView.java
@@ -185,7 +185,7 @@ * image is shown */ private void setPhoto(Bitmap bitmap, boolean fadeIn) { - if (fadeIn) { + if (mPhotoView.getDrawable() == null && fadeIn) { AlphaAnimation animation = new AlphaAnimation(0, 1); animation.setDuration(PHOTO_FADE_IN_ANIMATION_DURATION_MILLIS); animation.setInterpolator(new AccelerateInterpolator());