1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Fixed skipping polls

This commit is contained in:
M66B 2021-01-21 15:41:27 +01:00
parent 071df98e71
commit a2c3e9ad57

View file

@ -899,7 +899,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
private void onAlarm(Intent intent) {
schedule(this, true);
updateNetworkState(null, "alarm");
Bundle command = new Bundle();
command.putString("name", "eval");
@ -2177,6 +2176,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
private void post(Bundle command) {
EntityLog.log(ServiceSynchronize.this, "### command " +
TextUtils.join(" ", Log.getExtras(command)));
if (command.getBoolean("sync"))
lastNetworkState = ConnectionHelper.getNetworkState(ServiceSynchronize.this);
post(command, lastNetworkState, lastAccountStates);
}