File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
src/main/java/com/github/capntrips/kernelflasher/ui/screens/slot Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -90,5 +90,4 @@ dependencies {
9090 implementation(libs. material)
9191 implementation(libs. okhttp)
9292 implementation(libs. kotlinx. serialization. json)
93- implementation(" androidx.compose.runtime:runtime-livedata:1.6.0" )
9493}
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import androidx.compose.material3.Text
2222import androidx.compose.material3.AlertDialog
2323import androidx.compose.runtime.Composable
2424import androidx.compose.runtime.getValue
25- import androidx.compose.runtime.livedata.observeAsState
2625import androidx.compose.ui.Alignment
2726import androidx.compose.ui.Modifier
2827import androidx.compose.ui.draw.alpha
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import androidx.compose.runtime.snapshots.SnapshotStateList
1414import androidx.compose.runtime.snapshots.SnapshotStateMap
1515import androidx.lifecycle.ViewModel
1616import androidx.lifecycle.viewModelScope
17- import androidx.lifecycle.LiveData
1817import androidx.navigation.NavController
1918import com.github.capntrips.kernelflasher.common.PartitionUtil
2019import com.github.capntrips.kernelflasher.common.extensions.ByteArray.toHex
@@ -66,7 +65,7 @@ class SlotViewModel(
6665 private val hashAlgorithm: String = " SHA-256"
6766 private var inInit = true
6867 private var _error : String? = null
69- private val _showCautionDialog = mutableStateOf(false )
68+ private val _showCautionDialog : MutableState < Boolean > = mutableStateOf(false )
7069
7170 val sha1: String?
7271 get() = _sha1
@@ -84,7 +83,7 @@ class SlotViewModel(
8483 get() = _error != null
8584 val error: String
8685 get() = _error !!
87- val showCautionDialog: LiveData < Boolean >
86+ val showCautionDialog: Boolean
8887 get() = _showCautionDialog
8988
9089 init {
You can’t perform that action at this time.
0 commit comments