Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62fc6bb4 authored by Yorke Lee's avatar Yorke Lee
Browse files

Fix incorrect photouri on call shortcut

Bug: 10972458
Change-Id: Ibae824d24f72255f7d2e4c3dfa6f38f001f56f76
parent 990c95f1
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -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 */);