Simplification

pull/214/head
M66B 4 months ago
parent 3f5d8696db
commit 8cb576cc5b

@ -180,8 +180,9 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
}
});
lastActive = ConnectionHelper.getActiveNetwork(this);
lastSuitable = ConnectionHelper.getNetworkState(this).isSuitable();
ConnectionHelper.NetworkState state = ConnectionHelper.getNetworkState(this);
lastActive = state.getActive();
lastSuitable = state.isSuitable();
if (lastSuitable)
owner.start();

Loading…
Cancel
Save