summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2015-03-18 15:44:29 -0700
committerRajesh Yengisetty <rajesh@cyngn.com>2015-03-25 17:41:41 +0000
commitd7fceee1de7d1d8afc28ae712ffdf4bcdeb9c902 (patch)
tree7c29417cfe5e78eaca085a9d6fa578f1458a392f
parentef8bf41f75de370a7d6d9b5435ed88782857d115 (diff)
downloadpackages_apps_Contacts-caf/cm-12.0.tar.gz
packages_apps_Contacts-caf/cm-12.0.tar.bz2
packages_apps_Contacts-caf/cm-12.0.zip
Contacts: Add checkableimageview to sim import pickercaf/cm-12.0
Repro: - Open contacts, and select Import/Export from overflow menu - Import from SIM card - Select contact(s) - Observe: there's element in the list view to show checked state Change-Id: Ic5f3a390ea4501cfbef0252cdf6bd50e93b260eb (cherry picked from commit e98c8a501ab325b15e94a8e5a62b2c40a75b1634)
-rw-r--r--src/com/android/contacts/activities/MultiPickContactActivity.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/contacts/activities/MultiPickContactActivity.java b/src/com/android/contacts/activities/MultiPickContactActivity.java
index e4f71b4ac..725a4ce87 100644
--- a/src/com/android/contacts/activities/MultiPickContactActivity.java
+++ b/src/com/android/contacts/activities/MultiPickContactActivity.java
@@ -1316,7 +1316,8 @@ public class MultiPickContactActivity extends ListActivity implements
cache.anrs = cursor.getString(SIM_COLUMN_ANRS);
cliv.setDisplayName(cache.name);
- cliv.removePhotoView();
+ mContactPhotoManager.loadThumbnail(cliv.getPhotoView(), -1, null, false, true,
+ new DefaultImageRequest(cache.name, cache.lookupKey, true));
if (!TextUtils.isEmpty(cache.number)) {
cliv.setPhoneNumber(cache.number, null);
} else if (!TextUtils.isEmpty(cache.email)) {
@@ -1325,6 +1326,7 @@ public class MultiPickContactActivity extends ListActivity implements
} else {
cliv.setPhoneNumber(null, null);
}
+ cliv.setChecked(mChoiceSet.containsKey(String.valueOf(cache.id)), true);
} else if (isPickEmail()) {
cache.id = cursor.getLong(EMAIL_COLUMN_ID);
cache.email = cursor.getString(EMAIL_COLUMN_ADDRESS);