Files
Magisk/app
topjohnwu 1d662cb09d app: don't rerun flash and action jobs on restore
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
2026-10-24 13:01:45 -07:00
..
2025-06-16 02:17:29 -07:00
2025-06-16 02:17:29 -07:00