Moves the video caching service initialization foreground services.

This commit is contained in:
Vitor Pamplona
2023-07-21 09:47:54 -04:00
parent c6f63a13d3
commit fb19454259
2 changed files with 3 additions and 3 deletions
@@ -21,6 +21,9 @@ class PlaybackService : MediaSessionService() {
override fun onCreate() {
super.onCreate()
// Initializes video cache.
VideoCache.init(applicationContext)
setMediaNotificationProvider(
DefaultMediaNotificationProvider.Builder(applicationContext)
// .setNotificationIdProvider { session -> session.id.hashCode() }
@@ -60,9 +60,6 @@ object ServiceManager {
.build()
}
// Initializes video cache.
VideoCache.init(context.applicationContext)
if (myAccount != null) {
Client.connect(myAccount.activeRelays() ?: myAccount.convertLocalRelays())