mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-04 06:20:26 +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);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ServiceSynchronize.this);
|
||||||
if (!prefs.getBoolean("enabled", true)) {
|
if (!prefs.getBoolean("enabled", true)) {
|
||||||
EntityLog.log(ServiceSynchronize.this, "Not enabled, halt");
|
EntityLog.log(ServiceSynchronize.this, "Not enabled, halt");
|
||||||
|
try {
|
||||||
|
Thread.sleep(3000);
|
||||||
|
} catch (InterruptedException ignored) {
|
||||||
|
}
|
||||||
stopSelf();
|
stopSelf();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue