Skip to content

Commit 4887b8b

Browse files
Fix 7: Enable Both slot Flash options
1 parent 75a0896 commit 4887b8b

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ class SlotViewModel(
496496
}
497497

498498
@Suppress("FunctionName")
499-
private suspend fun _flashAk3(context: Context) {
499+
private suspend fun _flashAk3(context: Context, slotSuffix: String) {
500500
if (!isActive) {
501501
resetSlot()
502502
}
@@ -534,15 +534,15 @@ class SlotViewModel(
534534
launch {
535535
_clearFlash()
536536
_copyFile(context, currentBackup, filename)
537-
_flashAk3(context)
537+
_flashAk3(context,slotSuffix)
538538
}
539539
}
540540

541541
fun flashAk3(context: Context, uri: Uri) {
542542
launch {
543543
_clearFlash()
544544
_copyFile(context, uri)
545-
_flashAk3(context)
545+
_flashAk3(context, slotSuffix)
546546
}
547547
}
548548

0 commit comments

Comments
 (0)