Repository navigation
Commit d9f1d39
committed
ADFA-4986: keep the boot gate on re-entry during a live install
Tapping the install notification (or relaunching) mid-install re-entered LibraryActivity
without EXTRA_INSTALLING, so onCreate took the normal-boot path: its autostart (~3.5s) and
safety-dismiss (GATE_SAFETY_MS) timers fired, starting the server mid-provisioning and
opening the gate over a system that was still downloading/extracting -> a broken library.
- Derive `installing` also from the live install state: EXTRA_INSTALLING ||
InstallProgressRepository.get().current().isRunning() (DOWNLOADING/EXTRACTING/PROVISIONING),
so a live install keeps the progress gate and skips the normal-boot timers.
- Defense-in-depth: guard the autostart and safety-dismiss timers with !installing so a race
(repo reports running just after onCreate) still can't start the server or lift the gate.
Dismissal stays driven by the install SUCCESS terminal path; covers download and extraction.1 parent d0f531b commit d9f1d39
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
| |||
288 | 293 | | |
289 | 294 | | |
290 | 295 | | |
291 | | - | |
| 296 | + | |
| 297 | + | |
292 | 298 | | |
293 | 299 | | |
294 | 300 | | |
295 | 301 | | |
296 | 302 | | |
297 | 303 | | |
298 | | - | |
| 304 | + | |
| 305 | + | |
299 | 306 | | |
300 | | - | |
| 307 | + | |
301 | 308 | | |
302 | 309 | | |
303 | 310 | | |
| |||
0 commit comments