diff options
author | Ihab Awad <ihab@google.com> | 2014-10-24 11:43:33 -0700 |
---|---|---|
committer | Natiq Ahmed <mnatiq@codeaurora.org> | 2015-03-13 14:00:02 +0530 |
commit | 2389ef694ba53ba3f1cbd31466e017b3f559cfd3 (patch) | |
tree | a2c44d982497f366a50b9b048fe25371a903ae8a | |
parent | d16b8291bb27220f8563a646b5a9eb176cf9ea7b (diff) | |
download | android_packages_apps_ContactsCommon-2389ef694ba53ba3f1cbd31466e017b3f559cfd3.tar.gz android_packages_apps_ContactsCommon-2389ef694ba53ba3f1cbd31466e017b3f559cfd3.tar.bz2 android_packages_apps_ContactsCommon-2389ef694ba53ba3f1cbd31466e017b3f559cfd3.zip |
PhoneAccounts include literal icon bitmap (2/4)
Change-Id: Id0b4ef5db7cbba40344096c08c6c27bd361802a4
-rw-r--r-- | src/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java b/src/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java index 0dbe70a8..9c92cea4 100644 --- a/src/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java +++ b/src/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java @@ -132,20 +132,18 @@ public class SelectPhoneAccountDialogFragment extends DialogFragment { } private class SelectAccountListAdapter extends ArrayAdapter<PhoneAccountHandle> { - private Context mContext; private int mResId; public SelectAccountListAdapter( Context context, int resource, List<PhoneAccountHandle> accountHandles) { super(context, resource, accountHandles); - mContext = context; mResId = resource; } @Override public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) - mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); + getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); View rowView; final ViewHolder holder; @@ -166,7 +164,7 @@ public class SelectPhoneAccountDialogFragment extends DialogFragment { PhoneAccountHandle accountHandle = getItem(position); PhoneAccount account = mTelecomManager.getPhoneAccount(accountHandle); holder.textView.setText(account.getLabel()); - holder.imageView.setImageDrawable(account.getIcon(mContext)); + holder.imageView.setImageDrawable(account.getIcon(getContext())); return rowView; } |