Browse Source

Fixed displaying stars in thread view

main
M66B 6 years ago
parent
commit
703d8af6e8
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      app/src/main/java/eu/faircode/email/AdapterMessage.java

+ 4
- 1
app/src/main/java/eu/faircode/email/AdapterMessage.java View File

@ -158,7 +158,10 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
vwColor.setBackgroundColor(message.accountColor == null ? Color.TRANSPARENT : message.accountColor); vwColor.setBackgroundColor(message.accountColor == null ? Color.TRANSPARENT : message.accountColor);
vwColor.setVisibility(viewType == ViewType.UNIFIED ? View.VISIBLE : View.GONE); vwColor.setVisibility(viewType == ViewType.UNIFIED ? View.VISIBLE : View.GONE);
ivFlagged.setVisibility(message.count - message.unflagged > 0 ? View.VISIBLE : View.GONE);
if (viewType == ViewType.THREAD)
ivFlagged.setVisibility(message.unflagged == 1 ? View.GONE : View.VISIBLE);
else
ivFlagged.setVisibility(message.count - message.unflagged > 0 ? View.VISIBLE : View.GONE);
if (EntityFolder.DRAFTS.equals(message.folderType) || if (EntityFolder.DRAFTS.equals(message.folderType) ||
EntityFolder.OUTBOX.equals(message.folderType) || EntityFolder.OUTBOX.equals(message.folderType) ||


Loading…
Cancel
Save