mirror of https://github.com/M66B/FairEmail.git
Disable searching for no flagged messages
This commit is contained in:
parent
7471259011
commit
ce76a26232
|
@ -349,6 +349,8 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
|
||||||
tvFlagged.setText(NF.format(folder.flagged));
|
tvFlagged.setText(NF.format(folder.flagged));
|
||||||
ibFlagged.setImageResource(folder.flagged == 0
|
ibFlagged.setImageResource(folder.flagged == 0
|
||||||
? R.drawable.baseline_star_border_24 : R.drawable.baseline_star_24);
|
? R.drawable.baseline_star_border_24 : R.drawable.baseline_star_24);
|
||||||
|
tvFlagged.setEnabled(folder.flagged > 0);
|
||||||
|
ibFlagged.setEnabled(folder.flagged > 0);
|
||||||
|
|
||||||
tvError.setText(folder.error);
|
tvError.setText(folder.error);
|
||||||
tvError.setVisibility(folder.error != null ? View.VISIBLE : View.GONE);
|
tvError.setVisibility(folder.error != null ? View.VISIBLE : View.GONE);
|
||||||
|
|
Loading…
Reference in New Issue