Fix some deprecations

This commit is contained in:
Jobobby04 2024-12-08 13:58:44 -05:00
parent 75fe57b851
commit c86714ef59
2 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ import androidx.compose.material3.Icon
import androidx.compose.material3.InputChip import androidx.compose.material3.InputChip
import androidx.compose.material3.InputChipDefaults import androidx.compose.material3.InputChipDefaults
import androidx.compose.material3.MaterialTheme import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.MenuAnchorType
import androidx.compose.material3.OutlinedTextField import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.Text import androidx.compose.material3.Text
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
@ -154,7 +155,7 @@ fun AutoCompleteTextField(
null null
}, },
modifier = Modifier modifier = Modifier
.menuAnchor() .menuAnchor(MenuAnchorType.PrimaryEditable)
.fillMaxWidth() .fillMaxWidth()
.runOnEnterKeyPressed { submit() }, .runOnEnterKeyPressed { submit() },
singleLine = true, singleLine = true,

View File

@ -76,7 +76,7 @@ class BatchAddScreen : Screen() {
text = stringResource(SYMR.strings.eh_batch_add_description), text = stringResource(SYMR.strings.eh_batch_add_description),
) )
}, },
keyboardOptions = KeyboardOptions(autoCorrect = false), keyboardOptions = KeyboardOptions(autoCorrectEnabled = false),
textStyle = MaterialTheme.typography.bodyLarge, textStyle = MaterialTheme.typography.bodyLarge,
) )