File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/slot Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -174,15 +174,15 @@ class SlotViewModel(
174
174
175
175
@Suppress(" SameParameterValue" )
176
176
private fun uiPrint (message : String ) {
177
- viewModelScope.launch (Dispatchers .Main ) {
177
+ withContext (Dispatchers .Main ) {
178
178
_flashOutput .add(" ui_print $message " )
179
179
_flashOutput .add(" ui_print" )
180
180
}
181
181
}
182
182
183
183
// TODO: use base class for common functions
184
184
private fun addMessage (message : String ) {
185
- viewModelScope.launch (Dispatchers .Main ) {
185
+ withContext (Dispatchers .Main ) {
186
186
_flashOutput .add(message)
187
187
}
188
188
}
@@ -525,6 +525,10 @@ class SlotViewModel(
525
525
} finally {
526
526
uiPrint(" " )
527
527
if (wasSlotReset) {
528
+ uiPrint(" CAUTION: You have flashed AnyKernel Zip to inactive slot!" )
529
+ uiPrint(" But the active slot is not changed after flashing." )
530
+ uiPrint(" Use bootctl to change active slot or Return to System Updater to complete OTA." )
531
+ uiPrint(" Do not reboot from here, unless you know what you are doing." )
528
532
resetSlot()
529
533
}
530
534
}
You can’t perform that action at this time.
0 commit comments