Contacts App modifications for large photos.
Most of the work is on the provider side - essentially, the
provider will now deal with any size photo, downsizing it as
necessary to fit in a display size and thumbnail size. So
on the client we just need to pass in a larger photo to get a
hi-res display image for the contact.
Also switched a few spots to use the PHOTO_URI (with
openAssetFile) instead of PHOTO_THUMB_URI - more likely
remain.
Change-Id: I6ff8dd5453a9ff787907ab113d6e8aa6a71fcae1
diff --git a/src/com/android/contacts/GroupMemberLoader.java b/src/com/android/contacts/GroupMemberLoader.java
index 13edff0..e2945f6 100644
--- a/src/com/android/contacts/GroupMemberLoader.java
+++ b/src/com/android/contacts/GroupMemberLoader.java
@@ -48,10 +48,11 @@
Data.CONTACT_PRESENCE, // 6
Data.CONTACT_CHAT_CAPABILITY, // 7
Data.PHOTO_ID, // 8
- Data.PHOTO_THUMBNAIL_URI, // 9
- Data.LOOKUP_KEY, // 10
- Data.PHONETIC_NAME, // 11
- Data.HAS_PHONE_NUMBER, // 12
+ Data.PHOTO_URI, // 9
+ Data.PHOTO_THUMBNAIL_URI, // 10
+ Data.LOOKUP_KEY, // 11
+ Data.PHONETIC_NAME, // 12
+ Data.HAS_PHONE_NUMBER, // 13
};
private final long mGroupId;
@@ -66,6 +67,7 @@
public static final int CONTACT_CHAT_CAPABILITY_COLUMN_INDEX = 7;
public static final int CONTACT_PHOTO_ID_COLUMN_INDEX = 8;
public static final int CONTACT_PHOTO_URI_COLUMN_INDEX = 9;
+ public static final int CONTACT_PHOTO_THUMBNAIL_URI_COLUMN_INDEX = 10;
public static final int CONTACT_LOOKUP_KEY_COLUMN_INDEX = 10;
public static final int CONTACT_PHONETIC_NAME_COLUMN_INDEX = 11;
public static final int CONTACT_HAS_PHONE_COLUMN_INDEX = 12;