Fix for duplicate favorite contacts in speed dial
The incorrect column was being used to populate mContactIdIndex
which was breaking the deduping logic (which is based on contactId.
Bug: 25432987
Change-Id: If8c435e84d191ed012a019a800cf18abbda3d907
diff --git a/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java b/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java
index cd4c10b..77da7e9 100644
--- a/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java
+++ b/src/com/android/dialer/list/PhoneFavoritesTileAdapter.java
@@ -192,7 +192,7 @@
mPhoneNumberTypeIndex = ContactTileLoaderFactory.PHONE_NUMBER_TYPE;
mPhoneNumberLabelIndex = ContactTileLoaderFactory.PHONE_NUMBER_LABEL;
mPinnedIndex = ContactTileLoaderFactory.PINNED;
- mContactIdIndex = ContactTileLoaderFactory.CONTACT_ID;
+ mContactIdIndex = ContactTileLoaderFactory.CONTACT_ID_FOR_DATA;
mPresenceIndex = ContactTileLoaderFactory.CONTACT_PRESENCE;