mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-01 16:38:13 +02:00
Fixes changing editing amounts on recompose.
This commit is contained in:
parent
70c20fbb6d
commit
1f953cb728
@ -438,15 +438,14 @@ class UpdateZapAmountViewModel: ViewModel() {
|
||||
fun UpdateZapAmountDialog(onClose: () -> Unit, account: Account) {
|
||||
val postViewModel: UpdateZapAmountViewModel = viewModel()
|
||||
|
||||
postViewModel.load(account)
|
||||
|
||||
val ctx = LocalContext.current.applicationContext
|
||||
|
||||
// initialize focus reference to be able to request focus programmatically
|
||||
val focusRequester = remember { FocusRequester() }
|
||||
val keyboardController = LocalSoftwareKeyboardController.current
|
||||
|
||||
LaunchedEffect(Unit) {
|
||||
LaunchedEffect(account) {
|
||||
postViewModel.load(account)
|
||||
delay(100)
|
||||
focusRequester.requestFocus()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user