mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-11 11:33:09 +02:00
Workaround Android 9 Pie bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user