1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Simplification

This commit is contained in:
M66B 2018-12-11 12:13:41 +01:00
parent d5834f26bc
commit f8b9640ca1

View file

@ -375,10 +375,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
else
flagged = (message.count - message.unflagged > 0);
ivFlagged.setImageResource(flagged ? R.drawable.baseline_star_24 : R.drawable.baseline_star_border_24);
ivFlagged.setImageTintList(ColorStateList.valueOf(flagged
? Helper.resolveColor(context, R.attr.colorAccent)
: Helper.resolveColor(context, android.R.attr.textColorSecondary)
));
ivFlagged.setImageTintList(ColorStateList.valueOf(
Helper.resolveColor(context, flagged ? R.attr.colorAccent : android.R.attr.textColorSecondary)));
ivFlagged.setVisibility(View.VISIBLE);
tvFrom.setText(MessageHelper.getFormattedAddresses(outgoing ? message.to : message.from, false));