Skip to content

Commit

Permalink
Merge pull request #1594 from yongsuk44/trace-marker-default
Browse files Browse the repository at this point in the history
Fix duplicate composition trace markers
  • Loading branch information
mlykotom authored Sep 25, 2024
2 parents 0b54256 + f0434e5 commit 37353e3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ import androidx.compose.ui.unit.max
import androidx.compose.ui.unit.sp
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.tracing.trace
import com.google.accompanist.permissions.ExperimentalPermissionsApi
import com.google.accompanist.permissions.PermissionStatus.Denied
import com.google.accompanist.permissions.rememberPermissionState
Expand Down Expand Up @@ -320,7 +319,7 @@ private fun TopicSelection(
onboardingUiState: OnboardingUiState.Shown,
onTopicCheckedChanged: (String, Boolean) -> Unit,
modifier: Modifier = Modifier,
) = trace("TopicSelection") {
) {
val lazyGridState = rememberLazyGridState()
val topicSelectionTestTag = "forYou:topicSelection"

Expand Down Expand Up @@ -381,7 +380,7 @@ private fun SingleTopicButton(
imageUrl: String,
isSelected: Boolean,
onClick: (String, Boolean) -> Unit,
) = trace("SingleTopicButton") {
) {
Surface(
modifier = Modifier
.width(312.dp)
Expand Down

0 comments on commit 37353e3

Please sign in to comment.