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:
parent
8efdee1e8a
commit
947aa9d7a9
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue