Keeping media feed active from the start of the app.

This commit is contained in:
Vitor Pamplona
2023-07-14 16:54:57 -04:00
parent 5f1b2f9eb8
commit caa67b03a8
2 changed files with 1 additions and 4 deletions
@@ -79,6 +79,7 @@ object ServiceManager {
NostrAccountDataSource.start() NostrAccountDataSource.start()
NostrChatroomListDataSource.start() NostrChatroomListDataSource.start()
NostrDiscoveryDataSource.start() NostrDiscoveryDataSource.start()
NostrVideoDataSource.start()
// More Info Data Sources // More Info Data Sources
NostrSingleEventDataSource.start() NostrSingleEventDataSource.start()
@@ -85,10 +85,6 @@ fun VideoScreen(
println("Video Start") println("Video Start")
NostrVideoDataSource.start() NostrVideoDataSource.start()
} }
if (event == Lifecycle.Event.ON_PAUSE) {
println("Video Stop")
NostrVideoDataSource.stop()
}
} }
lifeCycleOwner.lifecycle.addObserver(observer) lifeCycleOwner.lifecycle.addObserver(observer)