mirror of https://github.com/M66B/FairEmail.git
Watchdog: conditionally check network
This commit is contained in:
parent
581596e616
commit
460592ffff
|
@ -876,7 +876,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
private void onWatchdog(Intent intent) {
|
||||
EntityLog.log(this, "Watchdog");
|
||||
schedule(this, false);
|
||||
updateNetworkState(null, "watchdog");
|
||||
|
||||
if (lastNetworkState == null || !lastNetworkState.isSuitable())
|
||||
updateNetworkState(null, "watchdog");
|
||||
}
|
||||
|
||||
private NotificationCompat.Builder getNotificationService(Integer accounts, Integer operations) {
|
||||
|
|
Loading…
Reference in New Issue