Browse Source

Workaround Android 9 Pie bug

main
M66B 6 years ago
parent
commit
947aa9d7a9
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 4
- 0
app/src/main/java/eu/faircode/email/ServiceSynchronize.java 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;
}


Loading…
Cancel
Save