mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
The back stack survives process death, but a flash or action screen's ViewModel doesn't. When such a screen was restored, its new ViewModel had no job yet, so the job started again without the user asking: a Magisk install, a module zip, an uninstall, or a module's action script, which may not be safe to repeat. Record in the ViewModel's SavedStateHandle that the job was started. If a restored screen finds the flag in a new ViewModel, its job and output are gone, so leave the screen instead of running the job again. Assisted-by: Claude Opus 5.5