Enable copying of contact screen uris

This commit is contained in:
Juha Heinanen
2026-06-06 08:27:59 +03:00
parent 7df6ee5b37
commit 7e8bb95f2a

View File

@ -708,16 +708,15 @@ private fun UrisSection(
OutlinedTextField( OutlinedTextField(
value = uri.substringAfter(":"), value = uri.substringAfter(":"),
onValueChange = {}, onValueChange = {},
enabled = false, readOnly = true,
modifier = Modifier.weight(1f), modifier = Modifier.weight(1f),
textStyle = androidx.compose.ui.text.TextStyle(fontSize = 18.sp), textStyle = androidx.compose.ui.text.TextStyle(fontSize = 18.sp),
label = { Text(text = label, fontWeight = FontWeight.Bold) }, label = { Text(text = label, fontWeight = FontWeight.Bold) },
colors = OutlinedTextFieldDefaults.colors( colors = OutlinedTextFieldDefaults.colors(
disabledTextColor = MaterialTheme.colorScheme.onSurface, focusedBorderColor = MaterialTheme.colorScheme.outline,
disabledBorderColor = MaterialTheme.colorScheme.outline, unfocusedBorderColor = MaterialTheme.colorScheme.outline,
disabledLeadingIconColor = MaterialTheme.colorScheme.onSurfaceVariant, focusedLabelColor = MaterialTheme.colorScheme.onSurfaceVariant,
disabledTrailingIconColor = MaterialTheme.colorScheme.onSurfaceVariant, unfocusedLabelColor = MaterialTheme.colorScheme.onSurfaceVariant,
disabledLabelColor = MaterialTheme.colorScheme.onSurfaceVariant,
) )
) )
@ -815,16 +814,15 @@ private fun EmailSection(ctx: Context, email: String, isEditing: Boolean, onEmai
OutlinedTextField( OutlinedTextField(
value = email, value = email,
onValueChange = {}, onValueChange = {},
enabled = false, readOnly = true,
modifier = Modifier.weight(1f), modifier = Modifier.weight(1f),
textStyle = androidx.compose.ui.text.TextStyle(fontSize = 18.sp), textStyle = androidx.compose.ui.text.TextStyle(fontSize = 18.sp),
label = { Text(text = stringResource(R.string.email), fontWeight = FontWeight.Bold) }, label = { Text(text = stringResource(R.string.email), fontWeight = FontWeight.Bold) },
colors = OutlinedTextFieldDefaults.colors( colors = OutlinedTextFieldDefaults.colors(
disabledTextColor = MaterialTheme.colorScheme.onSurface, focusedBorderColor = MaterialTheme.colorScheme.outline,
disabledBorderColor = MaterialTheme.colorScheme.outline, unfocusedBorderColor = MaterialTheme.colorScheme.outline,
disabledLeadingIconColor = MaterialTheme.colorScheme.onSurfaceVariant, focusedLabelColor = MaterialTheme.colorScheme.onSurfaceVariant,
disabledTrailingIconColor = MaterialTheme.colorScheme.onSurfaceVariant, unfocusedLabelColor = MaterialTheme.colorScheme.onSurfaceVariant,
disabledLabelColor = MaterialTheme.colorScheme.onSurfaceVariant,
) )
) )
IconButton( IconButton(