From 62fc6bb4eb37bdec85f7835224e6ca7384dff5a3 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Sun, 29 Sep 2013 15:39:02 -0700 Subject: Fix incorrect photouri on call shortcut Bug: 10972458 Change-Id: Ibae824d24f72255f7d2e4c3dfa6f38f001f56f76 --- src/com/android/dialer/calllog/CallLogAdapter.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index 86540efbb..4bc1787e5 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -190,7 +190,6 @@ public class CallLogAdapter extends GroupingListAdapter private boolean mIsCallLog = true; private int mNumMissedCalls = 0; private int mNumMissedCallsShown = 0; - private Uri mCurrentPhotoUri; private View mBadgeContainer; private ImageView mBadgeImageView; @@ -846,19 +845,11 @@ public class CallLogAdapter extends GroupingListAdapter } private void setPhoto(CallLogListItemViews views, long photoId, Uri contactUri) { - mCurrentPhotoUri = null; views.quickContactView.assignContactUri(contactUri); mContactPhotoManager.loadThumbnail(views.quickContactView, photoId, false /* darkTheme */); } private void setPhoto(CallLogListItemViews views, Uri photoUri, Uri contactUri) { - if (photoUri.equals(mCurrentPhotoUri)) { - // photo manager will perform a fade in transition. To avoid flicker, do not set the - // same photo multiple times. - return; - } - - mCurrentPhotoUri = photoUri; views.quickContactView.assignContactUri(contactUri); mContactPhotoManager.loadDirectoryPhoto(views.quickContactView, photoUri, false /* darkTheme */); -- cgit v1.2.3