1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Workaround Android 9 Pie bug

This commit is contained in:
M66B 2018-10-13 10:48:55 +00:00
parent 8efdee1e8a
commit 947aa9d7a9

View file

@ -1940,6 +1940,10 @@ public class ServiceSynchronize extends LifecycleService {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSynchronize.this);
if (!prefs.getBoolean("enabled", true)) {
EntityLog.log(ServiceSynchronize.this, "Not enabled, halt");
try {
Thread.sleep(3000);
} catch (InterruptedException ignored) {
}
stopSelf();
return;
}