Fix for contact lookup on GB.

This commit is contained in:
Moxie Marlinspike 2012-09-12 19:27:29 -07:00
parent c775dfa580
commit 110b436ea2
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -75,7 +75,8 @@ public class NewRecipientProvider extends RecipientProvider {
try {
if (cursor != null && cursor.moveToFirst()) {
Uri contactUri = Contacts.getLookupUri(cursor.getLong(2), cursor.getString(1));
Bitmap contactPhoto = getContactPhoto(context, contactUri);
Bitmap contactPhoto = getContactPhoto(context, Uri.withAppendedPath(Contacts.CONTENT_URI,
cursor.getLong(2)+""));
Recipient recipient = new Recipient(cursor.getString(0), number, contactUri, contactPhoto);
return recipient;