Localize message widget folder names

pull/180/head
M66B 5 years ago
parent ca904aa03b
commit 1b079c6a27

@ -153,8 +153,11 @@ public class ActivityWidgetUnified extends ActivityBase {
DB db = DB.getInstance(context); DB db = DB.getInstance(context);
List<TupleFolderEx> folders = db.folder().getFoldersEx(account); List<TupleFolderEx> folders = db.folder().getFoldersEx(account);
if (folders != null && folders.size() > 0) if (folders != null && folders.size() > 0) {
for (TupleFolderEx folder : folders)
folder.name = EntityFolder.localizeName(context, folder.name);
Collections.sort(folders, folders.get(0).getComparator(context)); Collections.sort(folders, folders.get(0).getComparator(context));
}
return folders; return folders;
} }

Loading…
Cancel
Save