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(
174174
175175 @Suppress(" SameParameterValue" )
176176 private fun uiPrint (message : String ) {
177- viewModelScope.launch (Dispatchers .Main ) {
177+ withContext (Dispatchers .Main ) {
178178 _flashOutput .add(" ui_print $message " )
179179 _flashOutput .add(" ui_print" )
180180 }
181181 }
182182
183183 // TODO: use base class for common functions
184184 private fun addMessage (message : String ) {
185- viewModelScope.launch (Dispatchers .Main ) {
185+ withContext (Dispatchers .Main ) {
186186 _flashOutput .add(message)
187187 }
188188 }
@@ -525,6 +525,10 @@ class SlotViewModel(
525525 } finally {
526526 uiPrint(" " )
527527 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." )
528532 resetSlot()
529533 }
530534 }
You can’t perform that action at this time.
0 commit comments