[#11] Close dropdown list first. the callback might restart the application on a settings change and keep the menu open.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -136,8 +136,8 @@ fun <T> StringSetting(name: String, map: Map<T, Int>, selected: T, onSelected: (
|
|||||||
map.forEach {
|
map.forEach {
|
||||||
DropdownMenuItem(
|
DropdownMenuItem(
|
||||||
onClick = {
|
onClick = {
|
||||||
onSelected(it.key)
|
|
||||||
expanded = false
|
expanded = false
|
||||||
|
onSelected(it.key)
|
||||||
},
|
},
|
||||||
text = { Text(stringResource(it.value)) },
|
text = { Text(stringResource(it.value)) },
|
||||||
trailingIcon = {
|
trailingIcon = {
|
||||||
|
|||||||
Reference in New Issue
Block a user