diff --git a/k9mail/src/main/java/com/fsck/k9/activity/AlternateRecipientAdapter.java b/k9mail/src/main/java/com/fsck/k9/activity/AlternateRecipientAdapter.java index 9d5b2db80..7e13348b9 100644 --- a/k9mail/src/main/java/com/fsck/k9/activity/AlternateRecipientAdapter.java +++ b/k9mail/src/main/java/com/fsck/k9/activity/AlternateRecipientAdapter.java @@ -198,7 +198,7 @@ public class AlternateRecipientAdapter extends BaseAdapter { int cryptoStatusColor = ThemeUtils.getStyledColor(context, cryptoStatusColorAttr); drawable.setColorFilter(cryptoStatusColor, Mode.SRC_ATOP); - holder.itemCryptoStatus.setImageDrawable(drawable); + holder.itemCryptoStatusIcon.setImageDrawable(drawable); holder.itemCryptoStatus.setVisibility(View.VISIBLE); } @@ -211,7 +211,8 @@ public class AlternateRecipientAdapter extends BaseAdapter { public final View headerRemove; public final TextView itemAddress; public final TextView itemAddressLabel; - public final ImageView itemCryptoStatus; + public final View itemCryptoStatus; + public final ImageView itemCryptoStatusIcon; public RecipientTokenHolder(View view) { @@ -225,7 +226,8 @@ public class AlternateRecipientAdapter extends BaseAdapter { itemAddress = (TextView) view.findViewById(R.id.alternate_address); itemAddressLabel = (TextView) view.findViewById(R.id.alternate_address_label); - itemCryptoStatus = (ImageView) view.findViewById(R.id.alternate_crypto_status); + itemCryptoStatus = view.findViewById(R.id.alternate_crypto_status); + itemCryptoStatusIcon = (ImageView) view.findViewById(R.id.alternate_crypto_status_icon); } public void setShowAsHeader(boolean isHeader) { diff --git a/k9mail/src/main/res/layout/recipient_alternate_item.xml b/k9mail/src/main/res/layout/recipient_alternate_item.xml index 590fcdee1..419b30059 100644 --- a/k9mail/src/main/res/layout/recipient_alternate_item.xml +++ b/k9mail/src/main/res/layout/recipient_alternate_item.xml @@ -108,6 +108,7 @@ /> @@ -121,7 +122,7 @@ />