Keeping media feed active from the start of the app.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user