Merge pull request #1594 from yongsuk44/trace-marker-default

Fix duplicate composition trace markers
pull/1640/head
Tomáš Mlynarič 3 months ago committed by GitHub
commit 37353e354a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -82,7 +82,6 @@ import androidx.compose.ui.unit.max
import androidx.compose.ui.unit.sp import androidx.compose.ui.unit.sp
import androidx.hilt.navigation.compose.hiltViewModel import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.tracing.trace
import com.google.accompanist.permissions.ExperimentalPermissionsApi import com.google.accompanist.permissions.ExperimentalPermissionsApi
import com.google.accompanist.permissions.PermissionStatus.Denied import com.google.accompanist.permissions.PermissionStatus.Denied
import com.google.accompanist.permissions.rememberPermissionState import com.google.accompanist.permissions.rememberPermissionState
@ -320,7 +319,7 @@ private fun TopicSelection(
onboardingUiState: OnboardingUiState.Shown, onboardingUiState: OnboardingUiState.Shown,
onTopicCheckedChanged: (String, Boolean) -> Unit, onTopicCheckedChanged: (String, Boolean) -> Unit,
modifier: Modifier = Modifier, modifier: Modifier = Modifier,
) = trace("TopicSelection") { ) {
val lazyGridState = rememberLazyGridState() val lazyGridState = rememberLazyGridState()
val topicSelectionTestTag = "forYou:topicSelection" val topicSelectionTestTag = "forYou:topicSelection"
@ -381,7 +380,7 @@ private fun SingleTopicButton(
imageUrl: String, imageUrl: String,
isSelected: Boolean, isSelected: Boolean,
onClick: (String, Boolean) -> Unit, onClick: (String, Boolean) -> Unit,
) = trace("SingleTopicButton") { ) {
Surface( Surface(
modifier = Modifier modifier = Modifier
.width(312.dp) .width(312.dp)

Loading…
Cancel
Save