mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 09:33:39 +02:00
Get network state when needed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user