Skip to content

Commit 87bc30e

Browse files
committed
Do not open change name dialog when tapping between name and icon
1 parent d2379d5 commit 87bc30e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • mobile/src/main/java/es/hegocre/scorecounter/ui/components

mobile/src/main/java/es/hegocre/scorecounter/ui/components/ScoreList.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import androidx.compose.foundation.interaction.PressInteraction
99
import androidx.compose.foundation.layout.Box
1010
import androidx.compose.foundation.layout.Column
1111
import androidx.compose.foundation.layout.Row
12+
import androidx.compose.foundation.layout.Spacer
1213
import androidx.compose.foundation.layout.fillMaxHeight
1314
import androidx.compose.foundation.layout.fillMaxSize
1415
import androidx.compose.foundation.layout.fillMaxWidth
@@ -267,12 +268,13 @@ fun ScoreView(
267268
modifier = Modifier
268269
.pointerInput(Unit) {
269270
detectTapGestures(onTap = { showPlayerNameDialog = true })
270-
}
271-
.weight(1f),
271+
},
272272
text = score.playerName.ifBlank { "${stringResource(id = R.string.player)} ${index + 1}" },
273273
color = MaterialTheme.colorScheme.onBackground.copy(alpha = if (score.playerName.isBlank()) 0.4f else 1f)
274274
)
275275

276+
Spacer(Modifier.weight(1f))
277+
276278
Icon(
277279
modifier = Modifier
278280
.pointerInput(Unit) {

0 commit comments

Comments
 (0)