From 1cc3dbf9578f2a9c36f2dd600b4fb08b4a8147a3 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 2 Aug 2024 11:22:10 +0200 Subject: [PATCH] Show inbox/category only when nav categories enabled --- app/src/main/java/eu/faircode/email/AdapterNavUnified.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterNavUnified.java b/app/src/main/java/eu/faircode/email/AdapterNavUnified.java index 0de184927a..7e42b221d4 100644 --- a/app/src/main/java/eu/faircode/email/AdapterNavUnified.java +++ b/app/src/main/java/eu/faircode/email/AdapterNavUnified.java @@ -59,6 +59,7 @@ public class AdapterNavUnified extends RecyclerView.Adapter map = new HashMap<>(); TupleFolderUnified unified = new TupleFolderUnified(); for (TupleFolderUnified type : new ArrayList<>(folders)) { - if (!EntityFolder.INBOX.equals(type.type)) + if (!nav_categories || !EntityFolder.INBOX.equals(type.type)) type.category = null; for (int i = 0; i < 1 + (type.category == null ? 0 : 1); i++) { if (i > 0) {