Disable searching for no flagged messages

This commit is contained in:
M66B 2020-05-19 15:47:13 +02:00
parent 7471259011
commit ce76a26232
1 changed files with 2 additions and 0 deletions

View File

@ -349,6 +349,8 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
tvFlagged.setText(NF.format(folder.flagged));
ibFlagged.setImageResource(folder.flagged == 0
? 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.setVisibility(folder.error != null ? View.VISIBLE : View.GONE);