mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 05:53:25 +02:00
Fixing Debug messages.
This commit is contained in:
@@ -95,12 +95,12 @@ fun TabKnown(accountViewModel: AccountViewModel, navController: NavController) {
|
|||||||
DisposableEffect(accountViewModel) {
|
DisposableEffect(accountViewModel) {
|
||||||
val observer = LifecycleEventObserver { source, event ->
|
val observer = LifecycleEventObserver { source, event ->
|
||||||
if (event == Lifecycle.Event.ON_RESUME) {
|
if (event == Lifecycle.Event.ON_RESUME) {
|
||||||
println("Global Start")
|
println("Chatroom List Start")
|
||||||
NostrChatroomListDataSource.start()
|
NostrChatroomListDataSource.start()
|
||||||
feedViewModel.invalidateData()
|
feedViewModel.invalidateData()
|
||||||
}
|
}
|
||||||
if (event == Lifecycle.Event.ON_PAUSE) {
|
if (event == Lifecycle.Event.ON_PAUSE) {
|
||||||
println("Global Stop")
|
println("Chatroom List Stop")
|
||||||
NostrChatroomListDataSource.stop()
|
NostrChatroomListDataSource.stop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -137,12 +137,12 @@ fun TabNew(accountViewModel: AccountViewModel, navController: NavController) {
|
|||||||
DisposableEffect(accountViewModel) {
|
DisposableEffect(accountViewModel) {
|
||||||
val observer = LifecycleEventObserver { source, event ->
|
val observer = LifecycleEventObserver { source, event ->
|
||||||
if (event == Lifecycle.Event.ON_RESUME) {
|
if (event == Lifecycle.Event.ON_RESUME) {
|
||||||
println("Global Start")
|
println("Chatroom List Start")
|
||||||
NostrChatroomListDataSource.start()
|
NostrChatroomListDataSource.start()
|
||||||
feedViewModel.invalidateData()
|
feedViewModel.invalidateData()
|
||||||
}
|
}
|
||||||
if (event == Lifecycle.Event.ON_PAUSE) {
|
if (event == Lifecycle.Event.ON_PAUSE) {
|
||||||
println("Global Stop")
|
println("Chatroom List Stop")
|
||||||
NostrChatroomListDataSource.stop()
|
NostrChatroomListDataSource.stop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -59,13 +59,13 @@ fun HomeScreen(accountViewModel: AccountViewModel, navController: NavController)
|
|||||||
DisposableEffect(accountViewModel) {
|
DisposableEffect(accountViewModel) {
|
||||||
val observer = LifecycleEventObserver { source, event ->
|
val observer = LifecycleEventObserver { source, event ->
|
||||||
if (event == Lifecycle.Event.ON_RESUME) {
|
if (event == Lifecycle.Event.ON_RESUME) {
|
||||||
println("Global Start")
|
println("Home Start")
|
||||||
NostrHomeDataSource.start()
|
NostrHomeDataSource.start()
|
||||||
feedViewModel.invalidateData()
|
feedViewModel.invalidateData()
|
||||||
feedViewModelReplies.invalidateData()
|
feedViewModelReplies.invalidateData()
|
||||||
}
|
}
|
||||||
if (event == Lifecycle.Event.ON_PAUSE) {
|
if (event == Lifecycle.Event.ON_PAUSE) {
|
||||||
println("Global Stop")
|
println("Home Stop")
|
||||||
NostrHomeDataSource.stop()
|
NostrHomeDataSource.stop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user