Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Component used: WorkManager
Version used: 2.4.0
Devices/Android versions reproduced on: Pixel 3a
Sample project:https://github.com/npike/android-workmanager-fromStates
It seems that when I have a Worker running with a constraint of RequiredNetworkType(NetworkType.CONNECTED), and disable my device's WiFi, that Worker is correctly cancelled, but the LiveData returned by the following code does not update to reflect the change in state from RUNNING to ENQUEUED.
The LiveData returned by the following code (observing a single tag for the same Worker above) updates as expected to reflect the new ENQUEUED state of my Worker.
This logic can be found in MainViewModel of the sample project linked in this ticket.