Fixed
Status Update
Comments
ra...@google.com <ra...@google.com>
ra...@google.com <ra...@google.com>
ap...@google.com <ap...@google.com> #2
Thanks for filing the issue.
This is a particularly hard device to come by - do you happen to have access to the device? If so could you provide us with the output of: adb shell dumpsys media.camera > info.txt
Thanks!
This is a particularly hard device to come by - do you happen to have access to the device? If so could you provide us with the output of: adb shell dumpsys media.camera > info.txt
Thanks!
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.