Rename variables

Change-Id: Iccfc7cdd76c8ad1c866eeff8d621952c3e9c4db6
pull/458/head
mlykotom 2 years ago
parent 53648921bc
commit 9c22af19eb

@ -126,14 +126,14 @@ internal fun ForYouScreen(
onNewsResourcesCheckedChanged: (String, Boolean) -> Unit, onNewsResourcesCheckedChanged: (String, Boolean) -> Unit,
modifier: Modifier = Modifier, modifier: Modifier = Modifier,
) { ) {
val onboardingLoading = onboardingUiState is OnboardingUiState.Loading val isOnboardingLoading = onboardingUiState is OnboardingUiState.Loading
val feedLoading = feedState is NewsFeedUiState.Loading val isFeedLoading = feedState is NewsFeedUiState.Loading
// Workaround to call Activity.reportFullyDrawn from Jetpack Compose. // Workaround to call Activity.reportFullyDrawn from Jetpack Compose.
// This code should be called when the UI is ready for use // This code should be called when the UI is ready for use
// and relates to Time To Full Display. // and relates to Time To Full Display.
// TODO replace with ReportDrawnWhen { } once androidx.activity-compose 1.7.0 is used (currently alpha) // TODO replace with ReportDrawnWhen { } once androidx.activity-compose 1.7.0 is used (currently alpha)
if (!isSyncing && !onboardingLoading && !feedLoading) { if (!isSyncing && !isOnboardingLoading && !isFeedLoading) {
val localView = LocalView.current val localView = LocalView.current
// We use Unit to call reportFullyDrawn only on the first recomposition, // We use Unit to call reportFullyDrawn only on the first recomposition,
// however it will be called again if this composable goes out of scope. // however it will be called again if this composable goes out of scope.
@ -195,7 +195,7 @@ internal fun ForYouScreen(
} }
} }
AnimatedVisibility( AnimatedVisibility(
visible = isSyncing || feedLoading || onboardingLoading, visible = isSyncing || isFeedLoading || isOnboardingLoading,
enter = slideInVertically( enter = slideInVertically(
initialOffsetY = { fullHeight -> -fullHeight }, initialOffsetY = { fullHeight -> -fullHeight },
) + fadeIn(), ) + fadeIn(),

Loading…
Cancel
Save