mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Conditionally init
This commit is contained in:
@@ -1456,7 +1456,9 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
schedule(context);
|
||||
|
||||
// Init service
|
||||
eval(context, "boot");
|
||||
int accounts = db.account().getSynchronizingAccounts().size();
|
||||
if (accounts > 0)
|
||||
eval(context, "boot");
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user