Always eval on service UI

This commit is contained in:
M66B 2020-05-24 12:36:07 +02:00
parent d26d79ca68
commit 32aa43d5b7
1 changed files with 2 additions and 14 deletions

View File

@ -176,6 +176,8 @@ public class ServiceUI extends IntentService {
} catch (Throwable ex) {
Log.e(ex);
}
ServiceSynchronize.eval(this, "ui/" + action);
}
private void onClear(long group) {
@ -210,8 +212,6 @@ public class ServiceUI extends IntentService {
} finally {
db.endTransaction();
}
ServiceSynchronize.eval(this, "ui/move:" + folderType);
}
private void onMove(long id) {
@ -233,8 +233,6 @@ public class ServiceUI extends IntentService {
} finally {
db.endTransaction();
}
ServiceSynchronize.eval(this, "ui/move:" + id);
}
private void onJunk(long id) throws JSONException {
@ -265,8 +263,6 @@ public class ServiceUI extends IntentService {
} finally {
db.endTransaction();
}
ServiceSynchronize.eval(this, "ui/junk");
}
private void onReplyDirect(long id, Intent intent) throws IOException {
@ -360,8 +356,6 @@ public class ServiceUI extends IntentService {
} finally {
db.endTransaction();
}
ServiceSynchronize.eval(this, "ui/flag");
}
private void onSeen(long id) {
@ -379,8 +373,6 @@ public class ServiceUI extends IntentService {
} finally {
db.endTransaction();
}
ServiceSynchronize.eval(this, "ui/seen");
}
private void onSnooze(long id) {
@ -486,8 +478,6 @@ public class ServiceUI extends IntentService {
if (EntityFolder.OUTBOX.equals(folder.type))
ServiceSend.start(this);
else
ServiceSynchronize.eval(this, "ui/wakeup");
}
private void onSync(long aid, boolean reschedule) {
@ -509,8 +499,6 @@ public class ServiceUI extends IntentService {
db.endTransaction();
}
ServiceSynchronize.eval(this, "ui/poll");
if (reschedule) {
long now = new Date().getTime();
long[] schedule = ServiceSynchronize.getSchedule(this);