Fixed infinite loop

This commit is contained in:
Sylvain Berfini 2022-02-26 19:14:05 +01:00
parent 355dd493d2
commit 2c364e4e23

View file

@ -142,7 +142,7 @@ class Api31Compatibility {
fun startForegroundService(context: Context, intent: Intent) {
try {
Compatibility.startForegroundService(context, intent)
context.startForegroundService(intent)
} catch (fssnae: ForegroundServiceStartNotAllowedException) {
Log.e("[Api31 Compatibility] Can't start service as foreground! $fssnae")
}