Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b462fe3d authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Use correct photo when building direct-dial shortcuts.

Previously was using the Phones._ID value when building a
People.CONTENT_URI Uri.  Fixed by using the Phones.PERSON_ID
value to build the Uri correctly.

Fixes http://b/issue?id=1910259
parent 98d69271
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1163,7 +1163,9 @@ public final class ContactsListActivity extends ListActivity
                Uri phoneUri = Uri.fromParts(scheme, number, null);
                shortcutIntent = new Intent(mShortcutAction, phoneUri);
                
                Uri personUri = ContentUris.withAppendedId(People.CONTENT_URI, id);
                // Find the People._ID for this phone number
                final long personId = c.getLong(PHONES_PERSON_ID_INDEX);
                Uri personUri = ContentUris.withAppendedId(People.CONTENT_URI, personId);
                intent.putExtra(Intent.EXTRA_SHORTCUT_ICON,
                        generatePhoneNumberIcon(personUri, type, resid));