Fix spotless

Change-Id: I8ea358f7fd8bfd765c88f6d833ad07161ee09e29
dt/improve-accessibility
Don Turner 9 months ago
parent 47f56c4da4
commit 989ca54c38

@ -75,9 +75,7 @@ import androidx.compose.ui.platform.LocalInspectionMode
import androidx.compose.ui.platform.testTag import androidx.compose.ui.platform.testTag
import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource import androidx.compose.ui.res.stringResource
import androidx.compose.ui.semantics.CustomAccessibilityAction
import androidx.compose.ui.semantics.clearAndSetSemantics import androidx.compose.ui.semantics.clearAndSetSemantics
import androidx.compose.ui.semantics.customActions
import androidx.compose.ui.semantics.semantics import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.semantics.stateDescription import androidx.compose.ui.semantics.stateDescription
import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.text.style.TextAlign
@ -392,7 +390,7 @@ private fun SingleTopicButton(
.width(312.dp) .width(312.dp)
.heightIn(min = 56.dp) .heightIn(min = 56.dp)
.semantics(mergeDescendants = true) { .semantics(mergeDescendants = true) {
stateDescription = if (isSelected){ stateDescription = if (isSelected) {
"Following" "Following"
} else { } else {
"Not following" "Not following"
@ -408,7 +406,7 @@ private fun SingleTopicButton(
Row( Row(
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
modifier = Modifier modifier = Modifier
.padding(start = 12.dp, end = 8.dp) .padding(start = 12.dp, end = 8.dp),
) { ) {
TopicIcon( TopicIcon(

Loading…
Cancel
Save