Fixed infinite loop
This commit is contained in:
parent
ab0cc34b24
commit
7123e0ff23
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue