NFC: don't use dynamic resources.

Also fixed talk-back for the default
payment app selection.

Bug: 21343778
Bug: 21588534
Change-Id: I2886b73edae507c7861351bac4610dbf3bebe027
This commit is contained in:
Martijn Coenen
2015-06-05 11:36:50 +02:00
parent fb32790adc
commit 6d5cac5946
2 changed files with 7 additions and 53 deletions

View File

@@ -174,11 +174,13 @@ public class NfcPaymentPreference extends DialogPreference implements
}
holder.imageView.setImageDrawable(appInfo.banner);
holder.imageView.setTag(appInfo);
holder.imageView.setContentDescription(appInfo.label);
holder.imageView.setOnClickListener(this);
// Prevent checked callback getting called on recycled views
holder.radioButton.setOnCheckedChangeListener(null);
holder.radioButton.setChecked(appInfo.isDefault);
holder.radioButton.setContentDescription(appInfo.label);
holder.radioButton.setOnCheckedChangeListener(this);
holder.radioButton.setTag(appInfo);
return convertView;