3665b829af9706f7f85c53e4ef5a0825228f4d7a |
|
13-Mar-2018 |
Sumir Kataria <sumir@google.com> |
Switch beginWithUniqueTag to beginWithName. Names are totally separated from tags: they are stored in their own database table and they have nothing to do with tags. This provides a firm separation between the two and will prevent the user from shooting themselves in the foot by being able to separately add work with "unique" tags and screwing up their internal state. Now, everything goes through the beginWithName methods. In doing this work, I also cleaned up CancelWorkRunnable so that it doesn't have an uber-constructor. Future CLs will add cancelByName(Sync) and getStatusesByName(Sync). Bug: 74406787 Test: Updated and ran tests. Change-Id: I36a284de36c87262dfbdad96236daa4a99b3abb4
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/WorkName.java
|