From 7183e89be83b01bb80b78bc1d43054a8f6daf25c Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 6 Jun 2020 11:18:39 +0200 Subject: [PATCH] Revert "Localize message widget folder names" This reverts commit 1b079c6a27dd986d4f32a66337e13d6516bd59eb. --- .../main/java/eu/faircode/email/ActivityWidgetUnified.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java b/app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java index f5dd5ad338..005e52c7b7 100644 --- a/app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java +++ b/app/src/main/java/eu/faircode/email/ActivityWidgetUnified.java @@ -153,11 +153,8 @@ public class ActivityWidgetUnified extends ActivityBase { DB db = DB.getInstance(context); List folders = db.folder().getFoldersEx(account); - if (folders != null && folders.size() > 0) { - for (TupleFolderEx folder : folders) - folder.name = EntityFolder.localizeName(context, folder.name); + if (folders != null && folders.size() > 0) Collections.sort(folders, folders.get(0).getComparator(context)); - } return folders; }