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

Commit e98c8a50 authored by Raj Yengisetty's avatar Raj Yengisetty
Browse files

Contacts: Add checkableimageview to sim import picker

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
parent a5a544f0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1309,7 +1309,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)) {
@@ -1318,6 +1319,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);