mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Reduced logging
This commit is contained in:
@@ -1161,6 +1161,8 @@ public class FragmentAccount extends FragmentBase {
|
||||
}
|
||||
}
|
||||
|
||||
boolean reschedule = (ignore_schedule != jconditions.optBoolean("ignore_schedule"));
|
||||
|
||||
try {
|
||||
db.beginTransaction();
|
||||
|
||||
@@ -1340,7 +1342,10 @@ public class FragmentAccount extends FragmentBase {
|
||||
db.endTransaction();
|
||||
}
|
||||
|
||||
ServiceSynchronize.eval(context, "save account");
|
||||
if (reschedule)
|
||||
ServiceSynchronize.reschedule(context);
|
||||
else
|
||||
ServiceSynchronize.eval(context, "save account");
|
||||
|
||||
if (!synchronize) {
|
||||
NotificationManager nm = Helper.getSystemService(context, NotificationManager.class);
|
||||
|
||||
@@ -518,6 +518,8 @@ public class FragmentPop extends FragmentBase {
|
||||
}
|
||||
}
|
||||
|
||||
boolean reschedule = (ignore_schedule != jconditions.optBoolean("ignore_schedule"));
|
||||
|
||||
try {
|
||||
db.beginTransaction();
|
||||
|
||||
@@ -608,7 +610,10 @@ public class FragmentPop extends FragmentBase {
|
||||
db.endTransaction();
|
||||
}
|
||||
|
||||
ServiceSynchronize.eval(context, "POP3");
|
||||
if (reschedule)
|
||||
ServiceSynchronize.reschedule(context);
|
||||
else
|
||||
ServiceSynchronize.eval(context, "POP3");
|
||||
|
||||
if (!synchronize) {
|
||||
NotificationManager nm = Helper.getSystemService(context, NotificationManager.class);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user