1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Added logging

This commit is contained in:
M66B 2020-10-31 11:06:17 +01:00
parent d1dedf53a1
commit 57786022fc

View file

@ -1839,10 +1839,12 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
if (backoff < CONNECT_BACKOFF_MAX)
state.setBackoff(backoff * 2);
else if (backoff == CONNECT_BACKOFF_MAX) {
if (!Helper.isCharging(this))
else if (backoff == CONNECT_BACKOFF_MAX)
if (Helper.isCharging(this))
EntityLog.log(this, "Device is charging");
else
state.setBackoff(CONNECT_BACKOFF_ALARM_START * 60);
} else if (backoff < CONNECT_BACKOFF_ALARM_MAX * 60)
else if (backoff < CONNECT_BACKOFF_ALARM_MAX * 60)
state.setBackoff(backoff * 2);
}