Small behavior improvement

This commit is contained in:
M66B 2019-08-18 09:16:13 +02:00
parent 18bda701f8
commit 8c63b7fdc4
1 changed files with 2 additions and 3 deletions

View File

@ -894,9 +894,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ivFlagged.setImageTintList(ColorStateList.valueOf(flagged > 0 ivFlagged.setImageTintList(ColorStateList.valueOf(flagged > 0
? message.color == null || !ActivityBilling.isPro(context) ? message.color == null || !ActivityBilling.isPro(context)
? colorAccent : message.color : textColorSecondary)); ? colorAccent : message.color : textColorSecondary));
ivFlagged.setVisibility(flags && !message.folderReadOnly ivFlagged.setVisibility(flags && !message.folderReadOnly ? View.VISIBLE : View.GONE);
? (message.uid == null ? View.INVISIBLE : View.VISIBLE) ivFlagged.setEnabled(message.uid != null);
: View.GONE);
} }
private void bindContactInfo(ContactInfo info, TupleMessageEx message) { private void bindContactInfo(ContactInfo info, TupleMessageEx message) {