Keep network state

This commit is contained in:
M66B
2019-03-16 13:12:31 +00:00
parent fa579d3c10
commit 4ca5cd0540
11 changed files with 94 additions and 53 deletions

View File

@@ -147,7 +147,7 @@ public class ServiceSend extends LifecycleService {
}
private void check() {
if (!Helper.suitableNetwork(ServiceSend.this, false))
if (!Helper.getNetworkState(ServiceSend.this).isSuitable())
return;
if (thread != null && thread.isAlive())
@@ -215,7 +215,7 @@ public class ServiceSend extends LifecycleService {
Log.i(outbox.name + " end op=" + op.id + "/" + op.name);
}
if (!Helper.suitableNetwork(ServiceSend.this, false))
if (!Helper.getNetworkState(ServiceSend.this).isSuitable())
break;
}