Skip to content

Commit ee379e4

Browse files
authored
make sure we use state system for relevant var
1 parent aecf889 commit ee379e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/org/andbootmgr/app/CreatePartFlow.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class CreatePartFlow(private val desiredStartSector: Long?): WizardFlow() {
9999
private class CreatePartDataHolder(val vm: WizardState, val desiredStartSector: Long?) {
100100
var meta by mutableStateOf<SDUtils.SDPartitionMeta?>(null) // metaonsd only
101101
lateinit var p: SDUtils.Partition.FreeSpace // metaonsd only
102-
var freeSpace: Long? = null // !metaonsd only
102+
var freeSpace by mutableLongStateOf(null) // !metaonsd only
103103
var startSectorRelative = 0L // metaonsd only
104104
var endSectorRelative = 0L // metaonsd only
105105
var desiredSize = 0L // !metaonsd only
@@ -947,4 +947,4 @@ private fun Flash(c: CreatePartDataHolder) {
947947
}
948948
}
949949
}
950-
}
950+
}

0 commit comments

Comments
 (0)