Moves the video caching service initialization foreground services.
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user