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 {
90
90
implementation(libs. material)
91
91
implementation(libs. okhttp)
92
92
implementation(libs. kotlinx. serialization. json)
93
- implementation(" androidx.compose.runtime:runtime-livedata:1.6.0" )
94
93
}
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import androidx.compose.material3.Text
22
22
import androidx.compose.material3.AlertDialog
23
23
import androidx.compose.runtime.Composable
24
24
import androidx.compose.runtime.getValue
25
- import androidx.compose.runtime.livedata.observeAsState
26
25
import androidx.compose.ui.Alignment
27
26
import androidx.compose.ui.Modifier
28
27
import 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
14
14
import androidx.compose.runtime.snapshots.SnapshotStateMap
15
15
import androidx.lifecycle.ViewModel
16
16
import androidx.lifecycle.viewModelScope
17
- import androidx.lifecycle.LiveData
18
17
import androidx.navigation.NavController
19
18
import com.github.capntrips.kernelflasher.common.PartitionUtil
20
19
import com.github.capntrips.kernelflasher.common.extensions.ByteArray.toHex
@@ -66,7 +65,7 @@ class SlotViewModel(
66
65
private val hashAlgorithm: String = " SHA-256"
67
66
private var inInit = true
68
67
private var _error : String? = null
69
- private val _showCautionDialog = mutableStateOf(false )
68
+ private val _showCautionDialog : MutableState < Boolean > = mutableStateOf(false )
70
69
71
70
val sha1: String?
72
71
get() = _sha1
@@ -84,7 +83,7 @@ class SlotViewModel(
84
83
get() = _error != null
85
84
val error: String
86
85
get() = _error !!
87
- val showCautionDialog: LiveData < Boolean >
86
+ val showCautionDialog: Boolean
88
87
get() = _showCautionDialog
89
88
90
89
init {
You can’t perform that action at this time.
0 commit comments