mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Set type to url for returned photos
This commit is contained in:
parent
64310dc85c
commit
7ebf8130e4
@ -678,6 +678,7 @@ public class ContactAccessorSdk5 extends ContactAccessor {
|
||||
try {
|
||||
photo.put("id", cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Photo._ID)));
|
||||
photo.put("pref", false);
|
||||
photo.put("type", "url");
|
||||
Uri person = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, (new Long(contactId)));
|
||||
Uri photoUri = Uri.withAppendedPath(person, ContactsContract.Contacts.Photo.CONTENT_DIRECTORY);
|
||||
photo.put("value", photoUri.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user