Get network state when needed

pull/180/head
M66B 5 years ago
parent 779c55d58e
commit 94b775af31

@ -1808,7 +1808,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
return;
}
if (networkState == null || accountStates == null)
if (networkState == null)
networkState = ConnectionHelper.getNetworkState(ServiceSynchronize.this);
if (accountStates == null)
return;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSynchronize.this);

Loading…
Cancel
Save