Yield foreground service start

This commit is contained in:
M66B
2023-09-08 08:49:54 +02:00
parent d30ca8441b
commit 5fb34691ac
3 changed files with 3 additions and 0 deletions

View File

@@ -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);
}