Skip to content

Commit 2032a2a

Browse files
Enable Both slot Flash options (Add Inactive slot flash warning) : Try 12
1 parent a81453f commit 2032a2a

File tree

1 file changed

+1
-2
lines changed
  • app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/slot

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ class SlotViewModel(
7171
val flashOutput: List<String>
7272
get() = _flashOutput
7373
val uiPrintedOutput: List<String>
74-
get() = _flashOutput.filter { it.startsWith("ui_print") }.map { it.substringAfter("ui_print").trim() }
75-
//get() = _flashOutput.filter { it.startsWith("ui_print") }.map{ it.substring("ui_print".length + 1) }
74+
get() = _flashOutput.filter { it.startsWith("ui_print") }.map { it.substringAfter("ui_print").trim() }.filter { it.isNotEmpty() || it == "" }
7675
val wasFlashSuccess: Boolean?
7776
get() = _wasFlashSuccess.value
7877
val backupPartitions: MutableMap<String, Boolean>

0 commit comments

Comments
 (0)