mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 10:55:09 +01:00
Yield foreground service start
This commit is contained in:
@@ -3493,6 +3493,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
context.startService(intent);
|
||||
else
|
||||
ContextCompat.startForegroundService(context, intent);
|
||||
Thread.sleep(Helper.FOREGROUND_SERVICE_YIELD);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user