mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +05:30
commit
0e4897950d
@ -66,7 +66,9 @@ class BackgroundMode : Service() {
|
|||||||
val seekToPosition = intent.getLongExtra("seekToPosition", 0L)
|
val seekToPosition = intent.getLongExtra("seekToPosition", 0L)
|
||||||
playOnBackgroundMode(this, videoId, seekToPosition)
|
playOnBackgroundMode(this, videoId, seekToPosition)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
stopService(intent)
|
try {
|
||||||
|
stopService(intent)
|
||||||
|
} catch (e: Exception) {}
|
||||||
}
|
}
|
||||||
return super.onStartCommand(intent, flags, startId)
|
return super.onStartCommand(intent, flags, startId)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user