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

Commit b8ab8612 authored by Wenyi Wang's avatar Wenyi Wang
Browse files

Allow G+ profile photo to be saved as ME profile.

Bug: 25282799
Change-Id: Ie3872383311b401b2e8f3a983e27fcfe592c84f7
parent 2f94e320
Loading
Loading
Loading
Loading
+8 −16
Original line number Diff line number Diff line
@@ -465,14 +465,10 @@ public class CompactRawContactsEditorView extends LinearLayout implements View.O

    public void updatePhoto(Uri photoUri) {
        mPhotoValuesDelta.setFromTemplate(false);

        if (!mIsUserProfile) {
        // Unset primary for all photos
        unsetSuperPrimary();

        // Mark the currently displayed photo as primary
        mPhotoValuesDelta.setSuperPrimary(true);
        }

        // Even though high-res photos cannot be saved by passing them via
        // an EntityDeltaList (since they cause the Bundle size limit to be
@@ -587,14 +583,10 @@ public class CompactRawContactsEditorView extends LinearLayout implements View.O
        }
        final ValuesDelta valuesDelta = valuesDeltaList.get(photo.valuesDeltaListIndex);
        valuesDelta.setFromTemplate(false);

        if (!mIsUserProfile) {
            // Unset primary for all other photos
        // Unset primary for all photos
        unsetSuperPrimary();

        // Mark the currently displayed photo as primary
        valuesDelta.setSuperPrimary(true);
        }

        // Update the UI
        mPhotoView.setPhoto(valuesDelta, mMaterialPalette);
    }