Update compact editor photo to full res when possible
Bug 19655206
Change-Id: If30c7ba83851dcc7c98fa1be4bed92e302ba8245
diff --git a/src/com/android/contacts/editor/CompactRawContactsEditorView.java b/src/com/android/contacts/editor/CompactRawContactsEditorView.java
index 81d475e..704fe9d 100644
--- a/src/com/android/contacts/editor/CompactRawContactsEditorView.java
+++ b/src/com/android/contacts/editor/CompactRawContactsEditorView.java
@@ -30,6 +30,7 @@
import android.content.Context;
import android.graphics.Bitmap;
+import android.net.Uri;
import android.provider.ContactsContract.CommonDataKinds.Email;
import android.provider.ContactsContract.CommonDataKinds.GroupMembership;
import android.provider.ContactsContract.CommonDataKinds.Nickname;
@@ -219,6 +220,13 @@
}
/**
+ * Pass through to {@link CompactPhotoEditorView#setFullSizedPhoto(Uri)}.
+ */
+ public void setFullSizePhoto(Uri photoUri) {
+ mPhoto.setFullSizedPhoto(photoUri);
+ }
+
+ /**
* Pass through to {@link CompactPhotoEditorView#isWritablePhotoSet}.
*/
public boolean isWritablePhotoSet() {