mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 13:19:52 +01:00
Add a comment, wrap logging in an if.
This commit is contained in:
@@ -110,7 +110,7 @@ class AndroidTaskScheduler implements TaskScheduler, Service, AlarmListener {
|
|||||||
LOG.info("Alarm");
|
LOG.info("Alarm");
|
||||||
rescheduleAlarm();
|
rescheduleAlarm();
|
||||||
runDueTasks();
|
runDueTasks();
|
||||||
} else {
|
} else if (LOG.isLoggable(INFO)) {
|
||||||
LOG.info("Ignoring alarm with PID " + extraPid
|
LOG.info("Ignoring alarm with PID " + extraPid
|
||||||
+ ", current PID is " + currentPid);
|
+ ", current PID is " + currentPid);
|
||||||
}
|
}
|
||||||
@@ -143,6 +143,7 @@ class AndroidTaskScheduler implements TaskScheduler, Service, AlarmListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void rescheduleAlarm() {
|
private void rescheduleAlarm() {
|
||||||
|
// If SDK_INT < 23 the alarm repeats automatically
|
||||||
if (SDK_INT >= 23) scheduleIdleAlarm();
|
if (SDK_INT >= 23) scheduleIdleAlarm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user