Skip to content

Commit adeca4f

Browse files
committed
Enable Both slot Flash options (Add Inactive slot flash warning) : Try 19
1 parent 6513fd1 commit adeca4f

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/slot/SlotFlashContent.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import androidx.compose.material3.Text
2222
import androidx.compose.material3.AlertDialog
2323
import androidx.compose.runtime.Composable
2424
import androidx.compose.runtime.getValue
25-
import androidx.compose.runtime.livedata.observeAsState
2625
import androidx.compose.ui.Alignment
2726
import androidx.compose.ui.Modifier
2827
import androidx.compose.ui.draw.alpha

app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/slot/SlotViewModel.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import androidx.compose.runtime.snapshots.SnapshotStateList
1414
import androidx.compose.runtime.snapshots.SnapshotStateMap
1515
import androidx.lifecycle.ViewModel
1616
import androidx.lifecycle.viewModelScope
17-
import androidx.lifecycle.LiveData
1817
import androidx.navigation.NavController
1918
import com.github.capntrips.kernelflasher.common.PartitionUtil
2019
import 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 {

0 commit comments

Comments
 (0)