Enable copying of contact screen uris
This commit is contained in:
@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user