mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 16:16:33 +02:00
Sort folders to sync
This commit is contained in:
@@ -52,6 +52,7 @@ import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
||||
import com.google.android.material.snackbar.Snackbar;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class FragmentAccounts extends FragmentBase {
|
||||
@@ -351,6 +352,10 @@ public class FragmentAccounts extends FragmentBase {
|
||||
|
||||
// Unified inbox
|
||||
List<EntityFolder> folders = db.folder().getFoldersUnified(null, true);
|
||||
|
||||
if (folders.size() > 0)
|
||||
Collections.sort(folders, folders.get(0).getComparator(context));
|
||||
|
||||
for (EntityFolder folder : folders) {
|
||||
EntityOperation.sync(context, folder.id, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user