manager: Avoid repeated flashing caused by unconditionally clearing the Anykernel3 flashing status.

This commit is contained in:
ShirkNeko
2025-10-10 23:56:03 +08:00
parent b827360ac6
commit fcb7c3e99d

View File

@@ -184,8 +184,9 @@ fun KernelFlashScreen(
}
}
DisposableEffect(Unit) {
DisposableEffect(shouldAutoExit) {
onDispose {
if (shouldAutoExit) {
KernelFlashStateHolder.currentState = null
KernelFlashStateHolder.currentUri = null
KernelFlashStateHolder.currentSlot = null
@@ -194,6 +195,7 @@ fun KernelFlashScreen(
KernelFlashStateHolder.isFlashing = false
}
}
}
BackHandler(enabled = true) {
onBack()