mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
parent
3f5d8696db
commit
8cb576cc5b
|
@ -180,8 +180,9 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
lastActive = ConnectionHelper.getActiveNetwork(this);
|
ConnectionHelper.NetworkState state = ConnectionHelper.getNetworkState(this);
|
||||||
lastSuitable = ConnectionHelper.getNetworkState(this).isSuitable();
|
lastActive = state.getActive();
|
||||||
|
lastSuitable = state.isSuitable();
|
||||||
if (lastSuitable)
|
if (lastSuitable)
|
||||||
owner.start();
|
owner.start();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue