mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(config): pass destNum via setFragmentResultListener
This commit is contained in:
parent
e6e85d6403
commit
c15c3d8c09
8 changed files with 44 additions and 42 deletions
|
|
@ -32,8 +32,8 @@ fun PositionConfigItemList(
|
|||
onSaveClicked: (position: Position?, config: PositionConfig) -> Unit,
|
||||
) {
|
||||
val focusManager = LocalFocusManager.current
|
||||
var locationInput by remember { mutableStateOf(location) }
|
||||
var positionInput by remember { mutableStateOf(positionConfig) }
|
||||
var locationInput by remember(location) { mutableStateOf(location) }
|
||||
var positionInput by remember(positionConfig) { mutableStateOf(positionConfig) }
|
||||
|
||||
LazyColumn(
|
||||
modifier = Modifier.fillMaxSize()
|
||||
|
|
@ -182,8 +182,6 @@ fun PositionConfigItemList(
|
|||
enabled = positionInput != positionConfig || locationInput != location,
|
||||
onCancelClicked = {
|
||||
focusManager.clearFocus()
|
||||
locationInput = location
|
||||
positionInput = positionConfig
|
||||
},
|
||||
onSaveClicked = {
|
||||
focusManager.clearFocus()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue