Simplification

This commit is contained in:
M66B
2020-03-15 08:16:49 +01:00
parent cdf0d2d418
commit 0167033bd4
3 changed files with 2 additions and 6 deletions

View File

@@ -112,9 +112,8 @@ public class AdapterNavFolder extends RecyclerView.Adapter<AdapterNavFolder.View
}
int count;
if (EntityFolder.OUTBOX.equals(folder.type))
count = folder.snoozed + folder.operations;
else if (EntityFolder.DRAFTS.equals(folder.type))
if (EntityFolder.DRAFTS.equals(folder.type) ||
EntityFolder.OUTBOX.equals(folder.type))
count = folder.messages;
else
count = folder.unseen;