mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Watchdog: conditionally check network
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user