Fix formatting

Change-Id: Ibcdaf76984629d2d67030dcd7e04b8173644602c
pull/158/head
Tomáš Mlynarič 2 years ago
parent 7f24d82615
commit 7a762de378

@ -63,4 +63,3 @@ class BaselineProfileGenerator {
interestsScrollPeopleDownUp()
}
}

@ -54,4 +54,3 @@ class ScrollForYouFeedBenchmark {
forYouScrollFeedDownUp()
}
}

@ -166,8 +166,13 @@ fun ForYouScreen(
}
// Workaround to call Activity.reportFullyDrawn from Jetpack Compose.
// This code should be called when the UI is ready for use and relates to Time To Full Display.
if (interestsSelectionState !is ForYouInterestsSelectionUiState.Loading && feedState !is ForYouFeedUiState.Loading) {
// This code should be called when the UI is ready for use
// and relates to Time To Full Display.
val interestsLoaded =
interestsSelectionState !is ForYouInterestsSelectionUiState.Loading
val feedLoaded = feedState !is ForYouFeedUiState.Loading
if (interestsLoaded && feedLoaded) {
val localView = LocalView.current
// Unit prevents calling it only once on recomposition, but doesn't prevent when the composable goes out of scope.
// Activity.reportFullyDrawn has inside check to be called only once.

Loading…
Cancel
Save