mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-29 19:21:52 +01:00
Pausing discovery top nav list watcher.
This commit is contained in:
parent
1eaa22fe51
commit
63c5098558
@ -168,6 +168,10 @@ fun DiscoverScreen(
|
||||
println("Discovery Start")
|
||||
NostrDiscoveryDataSource.start()
|
||||
}
|
||||
if (event == Lifecycle.Event.ON_PAUSE) {
|
||||
println("Discovery Stop")
|
||||
NostrDiscoveryDataSource.stop()
|
||||
}
|
||||
}
|
||||
|
||||
lifeCycleOwner.lifecycle.addObserver(observer)
|
||||
|
Loading…
x
Reference in New Issue
Block a user