Simplification

pull/214/head
M66B 5 months ago
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…
Cancel
Save