Skip to content

Commit

Permalink
make sure we use state system for relevant var
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 authored Jan 21, 2025
1 parent aecf889 commit ee379e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/org/andbootmgr/app/CreatePartFlow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class CreatePartFlow(private val desiredStartSector: Long?): WizardFlow() {
private class CreatePartDataHolder(val vm: WizardState, val desiredStartSector: Long?) {
var meta by mutableStateOf<SDUtils.SDPartitionMeta?>(null) // metaonsd only
lateinit var p: SDUtils.Partition.FreeSpace // metaonsd only
var freeSpace: Long? = null // !metaonsd only
var freeSpace by mutableLongStateOf(null) // !metaonsd only
var startSectorRelative = 0L // metaonsd only
var endSectorRelative = 0L // metaonsd only
var desiredSize = 0L // !metaonsd only
Expand Down Expand Up @@ -947,4 +947,4 @@ private fun Flash(c: CreatePartDataHolder) {
}
}
}
}
}

0 comments on commit ee379e4

Please sign in to comment.