mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Yield foreground service start
This commit is contained in:
@@ -1001,6 +1001,7 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||
static void start(Context context) {
|
||||
try {
|
||||
ContextCompat.startForegroundService(context, new Intent(context, ServiceSend.class));
|
||||
Thread.sleep(Helper.FOREGROUND_SERVICE_YIELD);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user