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

Commit ac6b1a1c authored by Gary Mai's avatar Gary Mai
Browse files

Use .setImageURI when updating the photo Uri

EditorUiUtils.loadPhoto was designed for loading small images
not full resolution ones. Big images don't fit inside the
ContactPhotoManager cache.

Test: Manually verified changing photos through the camera and
through selecting from the gallery always updated the editor
photo view.

Fixes: 121985416
Change-Id: Ibc2162f78365d8512ccd9121b2957f2c503e53ff
parent 66967329
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -198,8 +198,7 @@ public class PhotoEditorView extends RelativeLayout implements View.OnClickListe
     * Binds a full size photo loaded from the given Uri.
     */
    public void setFullSizedPhoto(Uri photoUri) {
        EditorUiUtils.loadPhoto(ContactPhotoManager.getInstance(getContext()),
                mPhotoImageView, photoUri);
        mPhotoImageView.setImageURI(photoUri);
        mIsNonDefaultPhotoBound = true;
        updatePhotoDescription();
    }