Reduced logging

pull/207/head
M66B 3 years ago
parent f457849a78
commit 8f12a20041

@ -1161,6 +1161,8 @@ public class FragmentAccount extends FragmentBase {
}
}
boolean reschedule = (ignore_schedule != jconditions.optBoolean("ignore_schedule"));
try {
db.beginTransaction();
@ -1340,6 +1342,9 @@ public class FragmentAccount extends FragmentBase {
db.endTransaction();
}
if (reschedule)
ServiceSynchronize.reschedule(context);
else
ServiceSynchronize.eval(context, "save account");
if (!synchronize) {

@ -518,6 +518,8 @@ public class FragmentPop extends FragmentBase {
}
}
boolean reschedule = (ignore_schedule != jconditions.optBoolean("ignore_schedule"));
try {
db.beginTransaction();
@ -608,6 +610,9 @@ public class FragmentPop extends FragmentBase {
db.endTransaction();
}
if (reschedule)
ServiceSynchronize.reschedule(context);
else
ServiceSynchronize.eval(context, "POP3");
if (!synchronize) {

@ -1224,7 +1224,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
public void delegate() {
try {
long now = new Date().getTime();
long[] schedule = ServiceSynchronize.getSchedule(ServiceSynchronize.this);
long[] schedule = getSchedule(ServiceSynchronize.this);
boolean scheduled = (schedule == null || (now >= schedule[0] && now < schedule[1]));
boolean work = false;
@ -2350,7 +2350,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
try {
latch.await(5000L, TimeUnit.MILLISECONDS);
} catch (InterruptedException ex) {
Log.w(ex);
Log.i(ex);
}
// Stop executing operations
@ -2915,7 +2915,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
am.cancel(pi);
long now = new Date().getTime();
long[] schedule = ServiceSynchronize.getSchedule(context);
long[] schedule = getSchedule(context);
boolean scheduled = (schedule == null || (now >= schedule[0] && now < schedule[1]));
if (schedule != null) {

@ -951,7 +951,7 @@
<string name="title_date_header">Use \'Date\' header (sent time)</string>
<string name="title_date_remark">Changes will be applied to new messages only</string>
<string name="title_unmetered_only">Connect only via unmetered networks</string>
<string name="title_ignore_schedule">Sync outside the schedule</string>
<string name="title_ignore_schedule">Synchronize outside the schedule too</string>
<string name="title_related_identity">Add related identity (SMTP server)</string>
<string name="title_check">Check</string>
<string name="title_trust">Trust server certificate with fingerprint %1$s</string>

Loading…
Cancel
Save