mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Simplification
This commit is contained in:
parent
d5834f26bc
commit
f8b9640ca1
1 changed files with 2 additions and 4 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue