mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Get network state when needed
This commit is contained in:
parent
779c55d58e
commit
94b775af31
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue