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

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