mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Removed comments
This commit is contained in:
parent
03e348a741
commit
8ddc01684f
4 changed files with 9 additions and 9 deletions
|
@ -1711,7 +1711,7 @@ class Core {
|
|||
context, ServiceSend.PI_EXISTS, intent, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
|
||||
AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, next, piExists); // inexact
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, next, piExists);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -463,7 +463,7 @@ public class EntityMessage implements Serializable {
|
|||
am.cancel(pi);
|
||||
} else {
|
||||
Log.i("Set snooze id=" + id + " wakeup=" + new Date(wakeup));
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, wakeup, pi); // indirect exact
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, wakeup, pi);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -821,7 +821,7 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
|||
long trigger = System.currentTimeMillis() + delay;
|
||||
AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
|
||||
am.cancel(pi);
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, trigger, pi); // exact
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, trigger, pi);
|
||||
}
|
||||
|
||||
static void watchdog(Context context) {
|
||||
|
|
|
@ -1899,7 +1899,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
long trigger = System.currentTimeMillis() + duration;
|
||||
EntityLog.log(this, "### " + account.name + " keep alive" +
|
||||
" wait=" + account.poll_interval + " until=" + new Date(trigger));
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, trigger, pi); // inexact
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, trigger, pi);
|
||||
|
||||
try {
|
||||
wlAccount.release();
|
||||
|
@ -2107,7 +2107,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
try {
|
||||
long trigger = System.currentTimeMillis() + backoff * 1000L;
|
||||
EntityLog.log(this, "### " + account.name + " backoff until=" + new Date(trigger));
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, trigger, pi); // inexact
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, trigger, pi);
|
||||
|
||||
try {
|
||||
db.account().setAccountBackoff(account.id, trigger);
|
||||
|
@ -2450,7 +2450,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
Log.i("Schedule next=" + new Date(next));
|
||||
Log.i("Schedule poll=" + poll);
|
||||
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, next, pi); // exact
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, next, pi);
|
||||
|
||||
if (sync & poll) {
|
||||
at = now + 30 * 1000L;
|
||||
|
@ -2483,10 +2483,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
|
||||
EntityLog.log(context, "Poll next=" + new Date(next));
|
||||
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, next, piSync); // exact
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, next, piSync);
|
||||
}
|
||||
} else
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, at, piSync); // exact
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, at, piSync);
|
||||
}
|
||||
|
||||
static long[] getSchedule(Context context) {
|
||||
|
@ -2597,7 +2597,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
if (next < now + WATCHDOG_INTERVAL / 5)
|
||||
next += WATCHDOG_INTERVAL;
|
||||
Log.i("Sync watchdog at " + new Date(next));
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, next, pi); // exact
|
||||
AlarmManagerCompat.setAndAllowWhileIdle(am, AlarmManager.RTC_WAKEUP, next, pi);
|
||||
} else
|
||||
am.cancel(pi);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue