From 534c71130d64689d0ad73e0eaffb14fd0bde56bd Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 17 Jul 2021 16:10:26 +0200 Subject: [PATCH] Small folder fixes --- app/src/main/java/eu/faircode/email/FragmentFolders.java | 2 +- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentFolders.java b/app/src/main/java/eu/faircode/email/FragmentFolders.java index c909224eef..cf66754d27 100644 --- a/app/src/main/java/eu/faircode/email/FragmentFolders.java +++ b/app/src/main/java/eu/faircode/email/FragmentFolders.java @@ -776,7 +776,7 @@ public class FragmentFolders extends FragmentBase { db.endTransaction(); } - ServiceSynchronize.reload(context, folder.account, false, "delete folder"); + ServiceSynchronize.reload(context, folder.account, true, "delete folder"); return null; } diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 1016ec36fc..5afa3d4872 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1350,7 +1350,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences int count = db.folder().renameFolder(account.id, old, name); Log.i("Renamed to " + name + " count=" + count); - if (count == 0) + if (count != 0) reload(ServiceSynchronize.this, account.id, false, "folder renamed"); } finally { wlFolder.release();