Using now the new AutocompleteTextField also in AddAccountDialog

This commit is contained in:
dankito 2024-09-05 00:10:44 +02:00
parent 5a49e48ea8
commit c80d75c409
1 changed files with 3 additions and 3 deletions

View File

@ -70,9 +70,9 @@ fun AddAccountDialog(
) {
Column {
AutocompleteTextField(
onValueChange = { selectedBank = it },
label = { Text("Bank (Suche mit Name, Bankleitzahl oder Ort)") },
AutocompleteTextFieldNew(
onSelectedItemChanged = { selectedBank = it },
label = "Bank (Suche mit Name, Bankleitzahl oder Ort)",
getItemTitle = { bank -> bank.name },
fetchSuggestions = { query -> bankingService.findBanks(query) }
) { bank ->