1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Show star outline when no starred messages in folder

This commit is contained in:
M66B 2020-05-19 09:50:37 +02:00
parent a12bced984
commit 5d8964703e

View file

@ -347,6 +347,8 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
tvKeywords.setVisibility(show_flagged ? View.VISIBLE : View.GONE);
tvFlagged.setText(NF.format(folder.flagged));
ibFlagged.setImageResource(folder.flagged == 0
? R.drawable.baseline_star_border_24 : R.drawable.baseline_star_24);
tvError.setText(folder.error);
tvError.setVisibility(folder.error != null ? View.VISIBLE : View.GONE);