mirror of https://github.com/M66B/FairEmail.git
Skip showing user unified folders
This commit is contained in:
parent
4faa41a752
commit
2123142ad0
|
@ -227,20 +227,22 @@ public class AdapterNavUnified extends RecyclerView.Adapter<AdapterNavUnified.Vi
|
||||||
TupleFolderUnified unified = new TupleFolderUnified();
|
TupleFolderUnified unified = new TupleFolderUnified();
|
||||||
for (TupleFolderUnified type : new ArrayList<>(folders)) {
|
for (TupleFolderUnified type : new ArrayList<>(folders)) {
|
||||||
TupleFolderUnified f = map.get(type.type);
|
TupleFolderUnified f = map.get(type.type);
|
||||||
if (f == null)
|
if (!EntityFolder.SYSTEM.equals(type.type) &&
|
||||||
map.put(type.type, type);
|
!EntityFolder.USER.equals(type.type))
|
||||||
else {
|
if (f == null)
|
||||||
f.folders += type.folders;
|
map.put(type.type, type);
|
||||||
f.messages += type.messages;
|
else {
|
||||||
f.unseen += type.unseen;
|
f.folders += type.folders;
|
||||||
|
f.messages += type.messages;
|
||||||
|
f.unseen += type.unseen;
|
||||||
|
|
||||||
if (Objects.equals(f.color, type.color) ||
|
if (Objects.equals(f.color, type.color) ||
|
||||||
(f.color == null && f.folders == type.folders)) {
|
(f.color == null && f.folders == type.folders)) {
|
||||||
f.color = type.color;
|
f.color = type.color;
|
||||||
f.colorCount += type.colorCount;
|
f.colorCount += type.colorCount;
|
||||||
} else
|
} else
|
||||||
f.colorCount++;
|
f.colorCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type.unified) {
|
if (type.unified) {
|
||||||
unified.folders += type.folders;
|
unified.folders += type.folders;
|
||||||
|
|
Loading…
Reference in New Issue