mirror of https://github.com/M66B/FairEmail.git
Get network state when needed
This commit is contained in:
parent
779c55d58e
commit
94b775af31
|
@ -1808,7 +1808,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (networkState == null || accountStates == null)
|
if (networkState == null)
|
||||||
|
networkState = ConnectionHelper.getNetworkState(ServiceSynchronize.this);
|
||||||
|
|
||||||
|
if (accountStates == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSynchronize.this);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSynchronize.this);
|
||||||
|
|
Loading…
Reference in New Issue