mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Keep network state
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user