Update Compose

Also remove workaround for preventing keyboard showing up for SelectItems.

(cherry picked from commit efa7a3a167219e9e23ee9b29d9cabe3ca8eb088a)
This commit is contained in:
arkon 2023-08-10 22:45:58 -04:00 committed by Jobobby04
parent 8aed8fa741
commit 4b4e432ef6
2 changed files with 3 additions and 6 deletions

View File

@ -1,7 +1,7 @@
[versions]
compiler = "1.5.1"
compose-bom = "2023.07.00-alpha02"
accompanist = "0.31.5-beta"
compose-bom = "2023.09.00-alpha01"
accompanist = "0.33.0-alpha"
[libraries]
activity = "androidx.activity:activity-compose:1.7.2"

View File

@ -232,7 +232,6 @@ fun SelectItem(
label = { Text(text = label) },
value = options[selectedIndex].toString(),
onValueChange = {},
enabled = false,
readOnly = true,
singleLine = true,
trailingIcon = {
@ -240,9 +239,7 @@ fun SelectItem(
expanded = expanded,
)
},
colors = ExposedDropdownMenuDefaults.textFieldColors(
disabledTextColor = MaterialTheme.colorScheme.onSurface,
),
colors = ExposedDropdownMenuDefaults.textFieldColors(),
)
ExposedDropdownMenu(