using single instance of the clock to avoid recomposition lookups
This commit is contained in:
parent
ea2a960a3d
commit
cd0b3f567b
|
@ -115,13 +115,15 @@ private fun DirectoryViewModel.ObserveEvents(listState: LazyListState, toolbarPo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
val clock = Clock.systemUTC()
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun Content(listState: LazyListState, state: Content) {
|
private fun Content(listState: LazyListState, state: Content) {
|
||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
val navigateToRoom = { roomId: RoomId ->
|
val navigateToRoom = { roomId: RoomId ->
|
||||||
context.startActivity(MessengerActivity.newInstance(context, roomId))
|
context.startActivity(MessengerActivity.newInstance(context, roomId))
|
||||||
}
|
}
|
||||||
val clock = Clock.systemUTC()
|
|
||||||
val scope = rememberCoroutineScope()
|
val scope = rememberCoroutineScope()
|
||||||
|
|
||||||
LaunchedEffect(key1 = state.overviewState) {
|
LaunchedEffect(key1 = state.overviewState) {
|
||||||
|
|
Loading…
Reference in New Issue