Fixed
Status Update
Comments
yb...@google.com <yb...@google.com>
su...@google.com <su...@google.com> #2
Seems like it happens on API 21-22 too.
ad...@okcredit.in <ad...@okcredit.in> #3
This is expected. You are calling: enqueueUniquePeriodicWork() with an ExistingPeriodicWorkPolicy.REPLACE. This will cancel running work, and kick off new instances of all Workers.
https://github.com/rubensousa/WorkManagerKitkatBug/blob/master/app/src/main/java/com/github/rubensousa/workkitkatbug/MainActivity.kt#L24
ap...@google.com <ap...@google.com> #4
I just ran the sample again and now the behaviour is different for some weird reason. I forgot to mention that I only used REPLACE to test this properly. Because it also happens with KEEP.
ap...@google.com <ap...@google.com> #5
And shouldn't the behaviour be consistent across all Android versions?
Description
Version used: 1.0.0-alpha06
Devices/Android versions reproduced on: 4.4.2
following issue contains relevant details: