Skip to content

Commit 6513fd1

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

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,5 @@ 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")
9394
}

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ fun ColumnScope.SlotFlashContent(
196196
viewModel.switchSlot(context)
197197
},
198198
shape = RoundedCornerShape(4.dp),
199-
colors = ButtonDefaults.outlinedButtonColors(
200-
contentColor = MaterialTheme.colorScheme.primary
201-
)
199+
colors = ButtonDefaults.outlinedButtonColors()
202200
) {
203201
Text("CHANGE SLOT")
204202
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ 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
1718
import androidx.navigation.NavController
1819
import com.github.capntrips.kernelflasher.common.PartitionUtil
1920
import com.github.capntrips.kernelflasher.common.extensions.ByteArray.toHex

0 commit comments

Comments
 (0)