Fix for self-photo lookup bug on 2.3

This commit is contained in:
Moxie Marlinspike 2012-09-14 10:45:11 -07:00
parent 6acf4ba3f6
commit edb466ae86
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,8 @@ public class NewRecipientProvider extends RecipientProvider {
if (cursor.moveToFirst()) {
long rowId = cursor.getLong(0);
Uri contactUri = Contacts.getLookupUri(rowId, cursor.getString(2));
Bitmap contactPhoto = getContactPhoto(context, contactUri);
Bitmap contactPhoto = getContactPhoto(context, Uri.withAppendedPath(Contacts.CONTENT_URI,
rowId+""));
String displayName = cursor.getString(1);
cursor.close();