Auto reload folder list

This commit is contained in:
M66B
2024-06-18 09:32:38 +02:00
parent ed9575e358
commit 063702814e
2 changed files with 10 additions and 7 deletions

View File

@@ -787,20 +787,20 @@ public class EntityOperation {
sync(context, fid, false, force);
}
static void sync(Context context, long fid, boolean foreground) {
sync(context, fid, foreground, false);
static boolean sync(Context context, long fid, boolean foreground) {
return sync(context, fid, foreground, false);
}
static void sync(Context context, long fid, boolean foreground, boolean force) {
sync(context, fid, foreground, force, false);
static boolean sync(Context context, long fid, boolean foreground, boolean force) {
return sync(context, fid, foreground, force, false);
}
static void sync(Context context, long fid, boolean foreground, boolean force, boolean outbox) {
static boolean sync(Context context, long fid, boolean foreground, boolean force, boolean outbox) {
DB db = DB.getInstance(context);
EntityFolder folder = db.folder().getFolder(fid);
if (folder == null)
return;
return force;
if (foreground) {
long now = new Date().getTime();
@@ -864,6 +864,8 @@ public class EntityOperation {
Log.e("outbox");
ServiceSend.start(context);
}
return force;
}
static void subscribe(Context context, long fid, boolean subscribe) {