This repository was archived by the owner on Jun 5, 2022. It is now read-only.
Commit 4cd3cd2
committed
Improve fix for sending empty token if worker was delayed
- 6e3a7b7 was a good idea but messes up any existing pending workers, since the 'old' token is no longer available. Instead, when there is a new token cancel all outstanding workers and schedule a new one that updates all users. This makes sure that 1) old/new is handled as expected and 2) any changes to the currently viewed user are immediately visible (due to LiveData).1 parent 668bce2 commit 4cd3cd2
File tree
1 file changed
+4
-1
lines changed- app/src/main/java/nl/jpelgrm/movienotifier/ui/settings
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
460 | 462 | | |
461 | 463 | | |
462 | 464 | | |
463 | | - | |
| 465 | + | |
| 466 | + | |
464 | 467 | | |
465 | 468 | | |
466 | 469 | | |
| |||
0 commit comments