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
diff --git a/src/com/android/contacts/ContactsListActivity.java b/src/com/android/contacts/ContactsListActivity.java
index 51363be..2cc5758 100644
--- a/src/com/android/contacts/ContactsListActivity.java
+++ b/src/com/android/contacts/ContactsListActivity.java
@@ -1163,7 +1163,9 @@
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));