mirror of https://github.com/tasks/tasks
Compare commits
480 Commits
Author | SHA1 | Date |
---|---|---|
Alex Baker | 97a3f074d0 | 1 day ago |
Alex Baker | 86ecd3cf81 | 1 day ago |
Alex Baker | 07a2eda5ea | 1 day ago |
renovate[bot] | 09ffbdd036 | 1 day ago |
renovate[bot] | 60f22146ca | 1 day ago |
renovate[bot] | c11225abaf | 1 day ago |
dependabot[bot] | 133ea493e3 | 1 day ago |
Alex Baker | 0ba901be69 | 5 days ago |
Alex Baker | ebe5e5c009 | 6 days ago |
Alex Baker | d556863fda | 6 days ago |
Alex Baker | 55adbc2025 | 6 days ago |
Alex Baker | 06c4255886 | 6 days ago |
renovate[bot] | 4734a99bae | 7 days ago |
Alex Baker | a6a8cac8e4 | 1 week ago |
Alex Baker | c3fc9a57cc | 1 week ago |
Alex Baker | 6e14d07d0c | 1 week ago |
Alex Baker | 6118121698 | 1 week ago |
Alex Baker | 6bf3bd4d08 | 1 week ago |
Alex Baker | 065be79355 | 1 week ago |
Alex Baker | f8f8ba3c51 | 1 week ago |
Alex Baker | 89465f36b3 | 1 week ago |
Alex Baker | 1380a34ffa | 1 week ago |
Alex Baker | 10af5280a3 | 1 week ago |
Alex Baker | 8c0f7b952d | 1 week ago |
Alex Baker | 65362b203f | 1 week ago |
Alex Baker | 3327f97a17 | 1 week ago |
Alex Baker | c9fc02a42e | 1 week ago |
renovate[bot] | 93670bb9e4 | 1 week ago |
Alex Baker | 1fc6a50d0b | 1 week ago |
Alex Baker | e1ef924909 | 1 week ago |
Alex Baker | 686cb5d346 | 1 week ago |
renovate[bot] | ebec25c4cb | 1 week ago |
renovate[bot] | c140f7e673 | 2 weeks ago |
renovate[bot] | efbcf11a4a | 2 weeks ago |
renovate[bot] | 6adee85a37 | 2 weeks ago |
Alex Baker | 5c8643110b | 2 weeks ago |
Alex Baker | abd13aeb75 | 2 weeks ago |
Alex Baker | c210fe1893 | 2 weeks ago |
Alex Baker | 26aa916c20 | 2 weeks ago |
renovate[bot] | 1eff2d1cd5 | 2 weeks ago |
islam2hamy | c90e683ea3 | 2 weeks ago |
Alex Baker | 3cd0295b71 | 2 weeks ago |
Alex Baker | 95c351e9fd | 2 weeks ago |
renovate[bot] | 4ddb7816f1 | 2 weeks ago |
renovate[bot] | 91c30f7bbf | 2 weeks ago |
renovate[bot] | 3f4398b6e0 | 2 weeks ago |
renovate[bot] | c822e989a3 | 2 weeks ago |
renovate[bot] | da146723e5 | 2 weeks ago |
109247019824 | 931626c84a | 2 weeks ago |
Alex Baker | c534632c52 | 2 weeks ago |
Alex Baker | c1347a7455 | 2 weeks ago |
renovate[bot] | 9544909a58 | 2 weeks ago |
Yurt Page | 5c10dce2b9 | 2 weeks ago |
Alex Baker | 584d4a5cbb | 2 weeks ago |
Alex Baker | 7c68a7fa59 | 2 weeks ago |
purushottamyadavbattula | 215cc838ef | 2 weeks ago |
Alex Baker | d60472d1bc | 3 weeks ago |
Alex Baker | f84a37a60a | 3 weeks ago |
Alex Baker | 7fb85b6da1 | 3 weeks ago |
Alex Baker | dc90e583e4 | 3 weeks ago |
Don Zouras | 0eac5f61eb | 4 weeks ago |
Milo Ivir | c686ce883d | 4 weeks ago |
大王叫我来巡山 | ab25398cd0 | 4 weeks ago |
renovate[bot] | 3b1c133d22 | 4 weeks ago |
renovate[bot] | 3bfd0ab4f8 | 4 weeks ago |
Liz de Sartiges | ffc0113d7f | 4 weeks ago |
Don Zouras | 9de9718ad5 | 4 weeks ago |
Oğuz Ersen | a7d2c9c406 | 4 weeks ago |
gallegonovato | b3006b9ac2 | 4 weeks ago |
Don Zouras | de3ef1f9c9 | 4 weeks ago |
Alex Baker | ce9e722a3f | 4 weeks ago |
Alex Baker | 4b892a0eb1 | 4 weeks ago |
Hady | e6e275834a | 4 weeks ago |
Alex Baker | 782f4d6d7c | 4 weeks ago |
elmuffo | a1da71d3e1 | 4 weeks ago |
Alex Baker | c793a300cc | 4 weeks ago |
Ilya Bizyaev | bf84bf9e82 | 4 weeks ago |
SC | 363b29babb | 1 month ago |
min7-i | c1ff953f5c | 1 month ago |
Alex Baker | 63482e5db9 | 1 month ago |
Emin Tufan Çetin | 2f7dc0c7f1 | 1 month ago |
Lionel HANNEQUIN | d672507fae | 1 month ago |
Jonatan Nyberg | ce2a3c8a3f | 1 month ago |
sorifukobexomajepasiricupuva33 | 9cd114d68b | 2 months ago |
Patrick V. Leguizamon | 0e663f0e08 | 2 months ago |
Mayhm | 1d1efd008d | 2 months ago |
Alex Baker | 26ab3d5866 | 2 months ago |
Mayhm | 9a4fcbbd39 | 2 months ago |
Alex Baker | 72bfda9224 | 2 months ago |
Alex Baker | 1067de4183 | 2 months ago |
Alex Baker | d686b8c7e0 | 2 months ago |
Alex Baker | b2efb42d55 | 2 months ago |
Fabio Parri | 3448808c94 | 2 months ago |
Alex Baker | 06a9626052 | 2 months ago |
Alex Baker | e92ab7f7e1 | 2 months ago |
Alex Baker | 4ff7b18c0f | 2 months ago |
Alex Baker | 91887f6b17 | 2 months ago |
Alex Baker | cf30b56098 | 2 months ago |
Alex Baker | 9bcadaab5a | 2 months ago |
Alex Baker | be766074b0 | 2 months ago |
Ihor Hordiichuk | 64a42a3f61 | 2 months ago |
Mayhm | 7b65ba6f06 | 2 months ago |
109247019824 | ac2b270e9e | 2 months ago |
Alex Baker | db2ea0a039 | 2 months ago |
renovate[bot] | 08b78fe9f4 | 2 months ago |
Alex Baker | 1a1301ae3e | 2 months ago |
Milo Ivir | d00061aa7f | 2 months ago |
大王叫我来巡山 | 45add6ab32 | 2 months ago |
Pierfrancesco Passerini | af43737c4e | 2 months ago |
macpac59 | dd40e59b17 | 2 months ago |
gallegonovato | 13f3248a01 | 2 months ago |
renovate[bot] | f6972e3e30 | 2 months ago |
Alex Baker | 83cf48a836 | 2 months ago |
Alex Baker | b7b4747a04 | 2 months ago |
Alex Baker | 6bec2ceef0 | 2 months ago |
Milo Ivir | d1e60d6512 | 2 months ago |
bittin1ddc447d824349b2 | 2b85089d3a | 2 months ago |
ferranpujolcamins | 2a0ef9feb6 | 2 months ago |
109247019824 | 33adbbd884 | 2 months ago |
Alex Baker | c25eb2e0c5 | 2 months ago |
Alex Baker | 14026356eb | 2 months ago |
Alex Baker | b328651dd4 | 2 months ago |
Alex Baker | a0e9bfabeb | 2 months ago |
大王叫我来巡山 | a1ad421b33 | 2 months ago |
Mayhm | 3488a08af1 | 2 months ago |
gallegonovato | b71d1af516 | 2 months ago |
Alex Baker | 041dce8617 | 2 months ago |
Alex Baker | 3d92ca78dd | 2 months ago |
Alex Baker | a32fce2d8b | 2 months ago |
Alex Baker | 4fb3cda173 | 2 months ago |
Alex Baker | f33cc896dd | 2 months ago |
Alex Baker | 4d1d6a06a8 | 2 months ago |
Alex Baker | 2202516688 | 2 months ago |
Alex Baker | d4a5008ecb | 2 months ago |
Alex Baker | 08189e10f1 | 2 months ago |
Anonymous | d3e4c066d8 | 2 months ago |
Anonymous | bbc5ae4d6d | 2 months ago |
Anonymous | c6cc00cf07 | 2 months ago |
Anonymous | 22e8720021 | 2 months ago |
Anonymous | a3ce98f0ea | 2 months ago |
macpac59 | 258f607d52 | 2 months ago |
ngocanhtve | 927acae7e4 | 2 months ago |
Odweta | 49ad9bafe3 | 2 months ago |
Alex Baker | 6df616d9ce | 2 months ago |
Alex Baker | 157668e35a | 2 months ago |
Aslam Karachiwala | efdf343869 | 2 months ago |
renovate[bot] | 5606df17c5 | 2 months ago |
renovate[bot] | fc3b4971f4 | 2 months ago |
renovate[bot] | 6a1699bb33 | 2 months ago |
renovate[bot] | e49303d5ca | 2 months ago |
renovate[bot] | 4b55569b51 | 3 months ago |
renovate[bot] | 2d7145cde3 | 3 months ago |
renovate[bot] | f2ab8bed95 | 3 months ago |
renovate[bot] | a5bc4cf536 | 3 months ago |
renovate[bot] | 1b35372b3a | 3 months ago |
Alex Baker | c0fd4bf66a | 3 months ago |
renovate[bot] | 5d366f0d61 | 3 months ago |
renovate[bot] | d0635ac6f3 | 3 months ago |
renovate[bot] | 8d4cf4daa5 | 3 months ago |
renovate[bot] | d1e439e70e | 3 months ago |
renovate[bot] | 4d4c3e5193 | 3 months ago |
Alex Baker | 20f87061fd | 3 months ago |
renovate[bot] | c03e3747c6 | 3 months ago |
renovate[bot] | 925b1b9124 | 3 months ago |
Alex Baker | 43db712f64 | 3 months ago |
Alex Baker | 9d33a73ee6 | 3 months ago |
renovate[bot] | 391c600ce2 | 3 months ago |
renovate[bot] | ee4ae94817 | 3 months ago |
renovate[bot] | 70b4be1447 | 3 months ago |
Don Zouras | bc54d92789 | 3 months ago |
Сергій | 2f34724b95 | 3 months ago |
Alex Baker | 940fdc28dd | 3 months ago |
Alex Baker | 68542fce38 | 3 months ago |
renovate[bot] | 7ba2977100 | 4 months ago |
Don Zouras | cb242539f0 | 4 months ago |
bittin1ddc447d824349b2 | 304841f2c3 | 4 months ago |
Don Zouras | 819ea797e6 | 4 months ago |
abc0922001 | 2dbea57262 | 4 months ago |
Don Zouras | 516a916fd5 | 4 months ago |
109247019824 | 3bd52efc80 | 4 months ago |
renovate[bot] | 64af955ea7 | 4 months ago |
Milo Ivir | 4cc5ec9639 | 4 months ago |
大王叫我来巡山 | 0d9292e53a | 4 months ago |
Oğuz Ersen | 732ccf1913 | 4 months ago |
gallegonovato | a2852bdbbf | 4 months ago |
Don Zouras | 68790ad401 | 4 months ago |
Alex Baker | e9afacb595 | 4 months ago |
Alex Baker | cf182aceab | 4 months ago |
Alex Baker | db889d233a | 4 months ago |
Alex Baker | 457b89c092 | 4 months ago |
Don Zouras | ad53af1b6a | 4 months ago |
renovate[bot] | 2c32b08c97 | 4 months ago |
renovate[bot] | a2fcf57c9e | 4 months ago |
renovate[bot] | 59a61325f2 | 4 months ago |
vulewuxe86 | 38a6064677 | 4 months ago |
renovate[bot] | 67daccf3e8 | 4 months ago |
renovate[bot] | dfe829d2a1 | 4 months ago |
renovate[bot] | 23c64f4d28 | 4 months ago |
renovate[bot] | e4b8f694f3 | 4 months ago |
renovate[bot] | e667c80731 | 4 months ago |
renovate[bot] | 909b077e25 | 4 months ago |
Don Zouras | e6fab9ad45 | 4 months ago |
raulmagdalena | 9474f5b7af | 4 months ago |
Don Zouras | 1ee051d768 | 4 months ago |
Don Zouras | f42edaa158 | 4 months ago |
RayBB | b97eade59c | 4 months ago |
renovate[bot] | 41aa1ca65f | 4 months ago |
renovate[bot] | 3e9a13ea14 | 4 months ago |
renovate[bot] | d966e8a12b | 4 months ago |
renovate[bot] | 8ba4e64994 | 4 months ago |
109247019824 | ee792f1ceb | 4 months ago |
renovate[bot] | caa09163a1 | 4 months ago |
renovate[bot] | d270abf5b3 | 4 months ago |
renovate[bot] | 1ef530abad | 4 months ago |
renovate[bot] | df26a6dbb9 | 4 months ago |
renovate[bot] | 1882c3b7e0 | 5 months ago |
renovate[bot] | cb53a0ca9f | 5 months ago |
renovate[bot] | b2fdef1ae7 | 5 months ago |
renovate[bot] | defb16ce95 | 5 months ago |
renovate[bot] | 823f99b28a | 5 months ago |
renovate[bot] | 6df872b1a1 | 5 months ago |
renovate[bot] | 133b960583 | 5 months ago |
renovate[bot] | 2e6753faec | 5 months ago |
renovate[bot] | cb07c2c267 | 5 months ago |
renovate[bot] | 23757ab320 | 5 months ago |
Alex Baker | 1b6ce0e48e | 5 months ago |
Kakaeo | 5af012068f | 5 months ago |
Alex Baker | 6c9ffa57d7 | 6 months ago |
Alex Baker | 52c54b1eac | 6 months ago |
Alex Baker | c8d81b44b6 | 6 months ago |
renovate[bot] | ef27a50e42 | 6 months ago |
Alex Baker | bde1356e7f | 6 months ago |
Alex Baker | 6c031925ba | 6 months ago |
Alex Baker | 8058414137 | 6 months ago |
Alex Baker | 3e37ea50f0 | 6 months ago |
renovate[bot] | 62f5a9c492 | 6 months ago |
renovate[bot] | a84fd65722 | 6 months ago |
renovate[bot] | 517b2d8f1b | 6 months ago |
renovate[bot] | 90942bf0be | 6 months ago |
Alex Baker | 83c3d1c4ba | 6 months ago |
Software In Interlingua | 6362ece569 | 6 months ago |
renovate[bot] | 8df85041b8 | 6 months ago |
ngocanhtve | 6d85af4c34 | 6 months ago |
Olli | 63f001dd72 | 6 months ago |
renovate[bot] | de49a50944 | 6 months ago |
renovate[bot] | df20d2f593 | 6 months ago |
renovate[bot] | fd16772236 | 6 months ago |
renovate[bot] | b77caac255 | 6 months ago |
renovate[bot] | ad058ed09b | 6 months ago |
Alex Baker | 8312113d7b | 6 months ago |
Alex Baker | ee21cc660e | 6 months ago |
Alex Baker | 5edc481ffe | 6 months ago |
Alex Baker | d0360a4862 | 6 months ago |
Alex Baker | ac35002408 | 6 months ago |
Subham Jena | 582ebad0f0 | 6 months ago |
Shaban Mamedov | 684c47184a | 6 months ago |
ngocanhtve | ac7a519e4e | 6 months ago |
renovate[bot] | 5c2b41af9d | 6 months ago |
renovate[bot] | 13986cf380 | 6 months ago |
CennoxX | c4f0b404e9 | 6 months ago |
Alex Baker | 145b5afbc6 | 6 months ago |
elig0n | 0b87a206fe | 6 months ago |
mm4c | d0e70ceea8 | 6 months ago |
J. Lavoie | bf3546a878 | 6 months ago |
Alex Baker | 8895acbf6b | 6 months ago |
Alex Baker | a52b1200f5 | 6 months ago |
renovate[bot] | 23964e807a | 7 months ago |
Alex Baker | 287b106dd4 | 7 months ago |
renovate[bot] | 33bab626e0 | 7 months ago |
renovate[bot] | a980cd75cc | 7 months ago |
renovate[bot] | 7eac4ac223 | 7 months ago |
renovate[bot] | 82cb2f7d3f | 7 months ago |
renovate[bot] | da2646597c | 7 months ago |
renovate[bot] | 495855133c | 7 months ago |
renovate[bot] | 242cb61662 | 7 months ago |
renovate[bot] | ab8886f3dc | 7 months ago |
Alex Baker | e48e92d2e6 | 7 months ago |
Alex Baker | 5f22f5cd38 | 7 months ago |
Alex Baker | 8a47cc2934 | 7 months ago |
Alex Baker | 0d94729d37 | 7 months ago |
Alex Baker | 14599eb3c0 | 7 months ago |
Alex Baker | b477623524 | 7 months ago |
Alex Baker | c8bfb67b50 | 7 months ago |
Alex Baker | 0a36e58525 | 7 months ago |
Alex Baker | 94a719cb66 | 7 months ago |
Alex Baker | b5748aa8e6 | 7 months ago |
Alex Baker | 7fd5647cb8 | 7 months ago |
Alex Baker | 2545832d67 | 7 months ago |
Alex Baker | 738bf435db | 7 months ago |
renovate[bot] | ab02323f29 | 7 months ago |
Alex Baker | d73a9d2795 | 7 months ago |
Alex Baker | ebe67354b6 | 7 months ago |
Alex Baker | 58edc6b4d8 | 7 months ago |
Weblate (bot) | 78b2cdac06 | 7 months ago |
renovate[bot] | c3d7db0087 | 7 months ago |
renovate[bot] | d7b1770b85 | 7 months ago |
Weblate (bot) | bebb3165a5 | 7 months ago |
Alex Baker | ad1198aace | 7 months ago |
Alex Baker | 7ae77a81e1 | 7 months ago |
Weblate (bot) | 3e79dd5190 | 7 months ago |
renovate[bot] | 9d57a849bf | 7 months ago |
Alex Baker | 82103eb477 | 7 months ago |
renovate[bot] | 11fa9a2bbd | 7 months ago |
renovate[bot] | b65831120f | 7 months ago |
renovate[bot] | f26a90a4f9 | 7 months ago |
renovate[bot] | dd3aa20485 | 7 months ago |
renovate[bot] | 8c84e1af50 | 7 months ago |
renovate[bot] | dc1eac23b9 | 7 months ago |
renovate[bot] | 5883952883 | 7 months ago |
Alex Baker | 775289b058 | 7 months ago |
Alex Baker | ee500c24b1 | 7 months ago |
Igor Sorocean | 68fd36b14d | 7 months ago |
renovate[bot] | b8f265fa36 | 7 months ago |
Alex Baker | cf4e6c1273 | 7 months ago |
renovate[bot] | 0dcc577497 | 7 months ago |
kmj-99 | b525e8cab3 | 7 months ago |
renovate[bot] | db0ad280eb | 7 months ago |
Alex Baker | 5092f80dcc | 7 months ago |
Kazushi Hayama | 6bc42363dd | 7 months ago |
Michal Šmahel | 115461c7b0 | 7 months ago |
renovate[bot] | 369c508890 | 7 months ago |
bittin1ddc447d824349b2 | a432cc33cc | 7 months ago |
Alex Baker | e5b51150cb | 7 months ago |
renovate[bot] | d43639556e | 7 months ago |
Alex Baker | ef2dd8f202 | 7 months ago |
Alex Baker | abc099c309 | 7 months ago |
Alex Baker | 348367e084 | 7 months ago |
renovate[bot] | 6a73f6745c | 7 months ago |
renovate[bot] | 5185c14e44 | 7 months ago |
Olli | aa7ff0fa16 | 7 months ago |
renovate[bot] | 12b979d363 | 7 months ago |
Alex Baker | 082f741983 | 8 months ago |
Alex Baker | 0bdd83988f | 8 months ago |
Alex Baker | 60784c10b5 | 8 months ago |
Alex Baker | da8467ac56 | 8 months ago |
renovate[bot] | 434d067822 | 8 months ago |
renovate[bot] | 04af310285 | 8 months ago |
renovate[bot] | 5555771f45 | 8 months ago |
renovate[bot] | 35b60df0ff | 8 months ago |
renovate[bot] | fef19b4995 | 8 months ago |
Alex Baker | 4c25b81a4d | 8 months ago |
Alex Baker | 0f37f4859e | 8 months ago |
Alex Baker | ee3d3fa4f5 | 8 months ago |
Alex Baker | a32d35720a | 8 months ago |
Alex Baker | bf6fe02fe3 | 8 months ago |
Alex Baker | 6664defc16 | 8 months ago |
renovate[bot] | b318b930a5 | 8 months ago |
Loucura | 91d18fd675 | 8 months ago |
Alex Baker | 94b6d7569b | 8 months ago |
Alex Baker | e70f5f3b24 | 8 months ago |
renovate[bot] | 68c21c4b1f | 8 months ago |
renovate[bot] | cbcc7f9bee | 8 months ago |
Milo Ivir | ba394b9db4 | 8 months ago |
Eric | 13298aa3be | 8 months ago |
Alex Baker | 993c41b197 | 8 months ago |
Alex Baker | 2bfc46f32b | 8 months ago |
Alex Baker | 4c61353411 | 8 months ago |
Alex Baker | f8d3985e97 | 8 months ago |
Alex Baker | c2a9d21f01 | 8 months ago |
Alex Baker | 20c81417a0 | 8 months ago |
Alex Baker | 77c86bbfb4 | 8 months ago |
renovate[bot] | 7e9ec26f53 | 8 months ago |
Alex Baker | 928ec9f647 | 8 months ago |
Alex Baker | 84ab8d0517 | 8 months ago |
Alex Baker | db66a66578 | 8 months ago |
Alex Baker | ea8a4b5e2d | 8 months ago |
Alex Baker | 5a4485818f | 8 months ago |
renovate[bot] | 1d348fcac9 | 8 months ago |
renovate[bot] | 79250cb8ff | 8 months ago |
renovate[bot] | 5d550df62e | 8 months ago |
Pierfrancesco Passerini | 1267fbeb0d | 8 months ago |
renovate[bot] | 2b0e285b42 | 8 months ago |
Alex Baker | 374f10c731 | 8 months ago |
abc0922001 | a38fdc065e | 8 months ago |
Ihor Hordiichuk | 6d4159eaac | 8 months ago |
Oğuz Ersen | 20fe494cd9 | 8 months ago |
Frits van Bommel | e7686bd9eb | 8 months ago |
Kaci | d4d721f060 | 8 months ago |
Florian Trayon | 1e9b39afd5 | 8 months ago |
Florian Trayon | 8878df27c4 | 8 months ago |
C. Rüdinger | 07eb9db157 | 8 months ago |
109247019824 | b4ad27152f | 8 months ago |
kmj-99 | 417a1cca46 | 8 months ago |
renovate[bot] | 3a6086adbd | 8 months ago |
Alex Baker | 9f3f0a9698 | 8 months ago |
Alex Baker | 8a085861de | 8 months ago |
Alex Baker | 7048f6a965 | 8 months ago |
Alex Baker | a9cb7b0e89 | 8 months ago |
Alex Baker | 4c7e2caa73 | 8 months ago |
Alex Baker | 3a5e45283a | 8 months ago |
renovate[bot] | a1885574da | 8 months ago |
vulewuxe86 | 113cf6f1b8 | 8 months ago |
renovate[bot] | 138cc21796 | 8 months ago |
Alex Baker | dea3484a2f | 8 months ago |
Alex Baker | 5948e4a958 | 8 months ago |
renovate[bot] | 10d2e8feda | 8 months ago |
renovate[bot] | cef7998a52 | 8 months ago |
renovate[bot] | 834bef7933 | 8 months ago |
renovate[bot] | 8ed6afff2b | 8 months ago |
renovate[bot] | 7d13e4f0ba | 8 months ago |
Alex Baker | 5cb8419206 | 8 months ago |
Alex Baker | 7283491872 | 8 months ago |
Alex Baker | 2de5b3c275 | 8 months ago |
Alex Baker | 864550d027 | 8 months ago |
renovate[bot] | b48348f30e | 8 months ago |
renovate[bot] | 81fdddc631 | 8 months ago |
Luna Jernberg | 21cb25d902 | 8 months ago |
Anaemix | b73ba43735 | 8 months ago |
renovate[bot] | a3ba87e4e6 | 8 months ago |
renovate[bot] | 26321633e2 | 8 months ago |
renovate[bot] | 1c3656a69c | 8 months ago |
renovate[bot] | 88bb66a7b3 | 8 months ago |
renovate[bot] | 0f7c200851 | 8 months ago |
renovate[bot] | f6d5732c07 | 8 months ago |
renovate[bot] | b278a04fce | 8 months ago |
renovate[bot] | 71c2e2b0f6 | 8 months ago |
renovate[bot] | 87639da922 | 8 months ago |
Anaemix | d7e366712c | 9 months ago |
renovate[bot] | 74ecb4a8bf | 9 months ago |
Emin Tufan Çetin | 305bd24883 | 9 months ago |
renovate[bot] | 68b7bef1ca | 9 months ago |
renovate[bot] | f6a6b0716f | 9 months ago |
renovate[bot] | dced669176 | 9 months ago |
Emin Tufan Çetin | 1b431f7a61 | 9 months ago |
Joan Montané | 2b3b7184e0 | 9 months ago |
renovate[bot] | a7062fe937 | 9 months ago |
Alex Baker | 573f6b897e | 9 months ago |
renovate[bot] | e1845d71bc | 9 months ago |
renovate[bot] | 1027d57860 | 9 months ago |
renovate[bot] | a2c92b8fd9 | 9 months ago |
renovate[bot] | 77643d7355 | 9 months ago |
Patrick V. Leguizamon | 54911021a5 | 9 months ago |
renovate[bot] | 908ac19754 | 9 months ago |
Alex Baker | 4ebd53fdf7 | 9 months ago |
Alex Baker | a0fbeba938 | 9 months ago |
Alex Baker | bd6000fcd6 | 9 months ago |
Alex Baker | aa861cb5e5 | 9 months ago |
Alex Baker | 17818c6e29 | 9 months ago |
Poesty Li | ca6521db23 | 9 months ago |
Alex Baker | dedf306106 | 9 months ago |
Alex Baker | 40f9b83dba | 9 months ago |
Alex Baker | c8b057867f | 9 months ago |
Alex Baker | d1ebd45492 | 9 months ago |
Alex Baker | ac28e26333 | 9 months ago |
renovate[bot] | fdf9fbce08 | 9 months ago |
renovate[bot] | 6d712642b3 | 9 months ago |
renovate[bot] | 329939e2b0 | 9 months ago |
Alex Baker | f62de8b7f3 | 9 months ago |
deep map | a2ef184c7d | 9 months ago |
Salif Mehmed | 6ac2c88782 | 9 months ago |
Naga | ada31293ea | 9 months ago |
Pierfrancesco Passerini | 805d914ff4 | 9 months ago |
109247019824 | aa1b4ef71a | 9 months ago |
vulewuxe86 | 3d0cf46f8d | 9 months ago |
abc0922001 | f7e2c7824a | 9 months ago |
Stefan | 2e2bdbe07a | 9 months ago |
Alex Baker | 427ee369b4 | 10 months ago |
Alex Baker | 804c0f974a | 10 months ago |
109247019824 | 691dc635a9 | 10 months ago |
renovate[bot] | 9f2364867b | 10 months ago |
renovate[bot] | cd638bba71 | 10 months ago |
Naga | 156669cb86 | 10 months ago |
Kazushi Hayama | 6c1daf5a3c | 10 months ago |
Pierfrancesco Passerini | 0a297c595f | 10 months ago |
qwerty287 | b698fc04db | 10 months ago |
109247019824 | ab6f3463d0 | 10 months ago |
Alex Baker | dbcaa36812 | 10 months ago |
Alex Baker | 83a42c9d8f | 10 months ago |
Alex Baker | ec97722857 | 10 months ago |
Alex Baker | dd78acadcd | 10 months ago |
Htet Oo Hlaing | 454faa234e | 10 months ago |
bruh | 55027ad625 | 10 months ago |
Alex Tereschenko | 13740c3d0d | 10 months ago |
Alex Tereschenko | 6037ee70e5 | 10 months ago |
Kazushi Hayama | 0f2e659e6f | 10 months ago |
Milo Ivir | 7945ecb9c4 | 10 months ago |
Poesty Li | 56f0be50ff | 10 months ago |
Ihor Hordiichuk | 91d46c5f11 | 10 months ago |
Htet Oo Hlaing | bab3898a7f | 10 months ago |
Alex Baker | 7b12e491ad | 10 months ago |
@ -1 +1 @@
|
||||
3.2.2
|
||||
3.3.1
|
||||
|
@ -1,263 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE module PUBLIC
|
||||
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
||||
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
||||
|
||||
<!-- https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-8.16/src/main/resources/google_checks.xml -->
|
||||
|
||||
<!--
|
||||
Checkstyle configuration that checks the Google coding conventions from Google Java Style
|
||||
that can be found at https://google.github.io/styleguide/javaguide.html.
|
||||
|
||||
Checkstyle is very configurable. Be sure to read the documentation at
|
||||
http://checkstyle.sf.net (or in your downloaded distribution).
|
||||
|
||||
To completely disable a check, just comment it out or delete it from the file.
|
||||
|
||||
Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
|
||||
-->
|
||||
|
||||
<module name = "Checker">
|
||||
<property name="charset" value="UTF-8"/>
|
||||
|
||||
<property name="severity" value="warning"/>
|
||||
|
||||
<property name="fileExtensions" value="java, properties, xml"/>
|
||||
<!-- Checks for whitespace -->
|
||||
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
|
||||
<module name="FileTabCharacter">
|
||||
<property name="eachLine" value="true"/>
|
||||
</module>
|
||||
|
||||
<module name="TreeWalker">
|
||||
<module name="OuterTypeFilename"/>
|
||||
<module name="IllegalTokenText">
|
||||
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
|
||||
<property name="format"
|
||||
value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
|
||||
<property name="message"
|
||||
value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
|
||||
</module>
|
||||
<module name="AvoidEscapedUnicodeCharacters">
|
||||
<property name="allowEscapesForControlCharacters" value="true"/>
|
||||
<property name="allowByTailComment" value="true"/>
|
||||
<property name="allowNonPrintableEscapes" value="true"/>
|
||||
</module>
|
||||
<module name="LineLength">
|
||||
<property name="max" value="100"/>
|
||||
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
|
||||
</module>
|
||||
<module name="AvoidStarImport"/>
|
||||
<module name="OneTopLevelClass"/>
|
||||
<module name="NoLineWrap"/>
|
||||
<module name="EmptyBlock">
|
||||
<property name="option" value="TEXT"/>
|
||||
<property name="tokens"
|
||||
value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
|
||||
</module>
|
||||
<module name="NeedBraces"/>
|
||||
<module name="LeftCurly"/>
|
||||
<module name="RightCurly">
|
||||
<property name="id" value="RightCurlySame"/>
|
||||
<property name="tokens"
|
||||
value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE,
|
||||
LITERAL_DO"/>
|
||||
</module>
|
||||
<module name="RightCurly">
|
||||
<property name="id" value="RightCurlyAlone"/>
|
||||
<property name="option" value="alone"/>
|
||||
<property name="tokens"
|
||||
value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
|
||||
INSTANCE_INIT"/>
|
||||
</module>
|
||||
<module name="WhitespaceAround">
|
||||
<property name="allowEmptyConstructors" value="true"/>
|
||||
<property name="allowEmptyMethods" value="true"/>
|
||||
<property name="allowEmptyTypes" value="true"/>
|
||||
<property name="allowEmptyLoops" value="true"/>
|
||||
<message key="ws.notFollowed"
|
||||
value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
|
||||
<message key="ws.notPreceded"
|
||||
value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
|
||||
</module>
|
||||
<module name="OneStatementPerLine"/>
|
||||
<module name="MultipleVariableDeclarations"/>
|
||||
<module name="ArrayTypeStyle"/>
|
||||
<module name="MissingSwitchDefault"/>
|
||||
<module name="FallThrough"/>
|
||||
<module name="UpperEll"/>
|
||||
<module name="ModifierOrder"/>
|
||||
<module name="EmptyLineSeparator">
|
||||
<property name="allowNoEmptyLineBetweenFields" value="true"/>
|
||||
</module>
|
||||
<module name="SeparatorWrap">
|
||||
<property name="id" value="SeparatorWrapDot"/>
|
||||
<property name="tokens" value="DOT"/>
|
||||
<property name="option" value="nl"/>
|
||||
</module>
|
||||
<module name="SeparatorWrap">
|
||||
<property name="id" value="SeparatorWrapComma"/>
|
||||
<property name="tokens" value="COMMA"/>
|
||||
<property name="option" value="EOL"/>
|
||||
</module>
|
||||
<module name="SeparatorWrap">
|
||||
<!-- ELLIPSIS is EOL until https://github.com/google/styleguide/issues/258 -->
|
||||
<property name="id" value="SeparatorWrapEllipsis"/>
|
||||
<property name="tokens" value="ELLIPSIS"/>
|
||||
<property name="option" value="EOL"/>
|
||||
</module>
|
||||
<module name="SeparatorWrap">
|
||||
<!-- ARRAY_DECLARATOR is EOL until https://github.com/google/styleguide/issues/259 -->
|
||||
<property name="id" value="SeparatorWrapArrayDeclarator"/>
|
||||
<property name="tokens" value="ARRAY_DECLARATOR"/>
|
||||
<property name="option" value="EOL"/>
|
||||
</module>
|
||||
<module name="SeparatorWrap">
|
||||
<property name="id" value="SeparatorWrapMethodRef"/>
|
||||
<property name="tokens" value="METHOD_REF"/>
|
||||
<property name="option" value="nl"/>
|
||||
</module>
|
||||
<module name="PackageName">
|
||||
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
|
||||
<message key="name.invalidPattern"
|
||||
value="Package name ''{0}'' must match pattern ''{1}''."/>
|
||||
</module>
|
||||
<module name="TypeName">
|
||||
<message key="name.invalidPattern"
|
||||
value="Type name ''{0}'' must match pattern ''{1}''."/>
|
||||
</module>
|
||||
<module name="MemberName">
|
||||
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
|
||||
<message key="name.invalidPattern"
|
||||
value="Member name ''{0}'' must match pattern ''{1}''."/>
|
||||
</module>
|
||||
<module name="ParameterName">
|
||||
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
|
||||
<message key="name.invalidPattern"
|
||||
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
|
||||
</module>
|
||||
<module name="LambdaParameterName">
|
||||
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
|
||||
<message key="name.invalidPattern"
|
||||
value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/>
|
||||
</module>
|
||||
<module name="CatchParameterName">
|
||||
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
|
||||
<message key="name.invalidPattern"
|
||||
value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
|
||||
</module>
|
||||
<module name="LocalVariableName">
|
||||
<property name="tokens" value="VARIABLE_DEF"/>
|
||||
<property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
|
||||
<message key="name.invalidPattern"
|
||||
value="Local variable name ''{0}'' must match pattern ''{1}''."/>
|
||||
</module>
|
||||
<module name="ClassTypeParameterName">
|
||||
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
|
||||
<message key="name.invalidPattern"
|
||||
value="Class type name ''{0}'' must match pattern ''{1}''."/>
|
||||
</module>
|
||||
<module name="MethodTypeParameterName">
|
||||
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
|
||||
<message key="name.invalidPattern"
|
||||
value="Method type name ''{0}'' must match pattern ''{1}''."/>
|
||||
</module>
|
||||
<module name="InterfaceTypeParameterName">
|
||||
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
|
||||
<message key="name.invalidPattern"
|
||||
value="Interface type name ''{0}'' must match pattern ''{1}''."/>
|
||||
</module>
|
||||
<module name="NoFinalizer"/>
|
||||
<module name="GenericWhitespace">
|
||||
<message key="ws.followed"
|
||||
value="GenericWhitespace ''{0}'' is followed by whitespace."/>
|
||||
<message key="ws.preceded"
|
||||
value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
|
||||
<message key="ws.illegalFollow"
|
||||
value="GenericWhitespace ''{0}'' should followed by whitespace."/>
|
||||
<message key="ws.notPreceded"
|
||||
value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
|
||||
</module>
|
||||
<module name="Indentation">
|
||||
<property name="basicOffset" value="2"/>
|
||||
<property name="braceAdjustment" value="0"/>
|
||||
<property name="caseIndent" value="2"/>
|
||||
<property name="throwsIndent" value="4"/>
|
||||
<property name="lineWrappingIndentation" value="4"/>
|
||||
<property name="arrayInitIndent" value="2"/>
|
||||
</module>
|
||||
<module name="AbbreviationAsWordInName">
|
||||
<property name="ignoreFinal" value="false"/>
|
||||
<property name="allowedAbbreviationLength" value="1"/>
|
||||
</module>
|
||||
<module name="OverloadMethodsDeclarationOrder"/>
|
||||
<module name="VariableDeclarationUsageDistance"/>
|
||||
<module name="CustomImportOrder">
|
||||
<property name="sortImportsInGroupAlphabetically" value="true"/>
|
||||
<property name="separateLineBetweenGroups" value="true"/>
|
||||
<property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
|
||||
</module>
|
||||
<module name="MethodParamPad"/>
|
||||
<module name="NoWhitespaceBefore">
|
||||
<property name="tokens"
|
||||
value="COMMA, SEMI, POST_INC, POST_DEC, DOT, ELLIPSIS, METHOD_REF"/>
|
||||
<property name="allowLineBreaks" value="true"/>
|
||||
</module>
|
||||
<module name="ParenPad"/>
|
||||
<module name="OperatorWrap">
|
||||
<property name="option" value="NL"/>
|
||||
<property name="tokens"
|
||||
value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR,
|
||||
LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF "/>
|
||||
</module>
|
||||
<module name="AnnotationLocation">
|
||||
<property name="id" value="AnnotationLocationMostCases"/>
|
||||
<property name="tokens"
|
||||
value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/>
|
||||
</module>
|
||||
<module name="AnnotationLocation">
|
||||
<property name="id" value="AnnotationLocationVariables"/>
|
||||
<property name="tokens" value="VARIABLE_DEF"/>
|
||||
<property name="allowSamelineMultipleAnnotations" value="true"/>
|
||||
</module>
|
||||
<module name="NonEmptyAtclauseDescription"/>
|
||||
<module name="JavadocTagContinuationIndentation">
|
||||
<property name="severity" value="ignore" />
|
||||
</module>
|
||||
<module name="SummaryJavadoc">
|
||||
<property name="severity" value="ignore" />
|
||||
<property name="forbiddenSummaryFragments"
|
||||
value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
|
||||
</module>
|
||||
<module name="JavadocParagraph">
|
||||
<property name="severity" value="ignore" />
|
||||
</module>
|
||||
<module name="AtclauseOrder">
|
||||
<property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
|
||||
<property name="target"
|
||||
value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
|
||||
</module>
|
||||
<module name="JavadocMethod">
|
||||
<property name="severity" value="ignore" />
|
||||
<property name="scope" value="public"/>
|
||||
<property name="allowMissingParamTags" value="true"/>
|
||||
<property name="allowMissingThrowsTags" value="true"/>
|
||||
<property name="allowMissingReturnTag" value="true"/>
|
||||
<property name="minLineCount" value="2"/>
|
||||
<property name="allowedAnnotations" value="Override, Test"/>
|
||||
<property name="allowThrowsTagsForSubclasses" value="true"/>
|
||||
</module>
|
||||
<module name="MethodName">
|
||||
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
|
||||
<message key="name.invalidPattern"
|
||||
value="Method name ''{0}'' must match pattern ''{1}''."/>
|
||||
</module>
|
||||
<module name="SingleLineJavadoc">
|
||||
<property name="severity" value="ignore"/>
|
||||
</module>
|
||||
<module name="EmptyCatchBlock">
|
||||
<property name="exceptionVariableName" value="expected"/>
|
||||
</module>
|
||||
<module name="CommentsIndentation"/>
|
||||
</module>
|
||||
</module>
|
@ -1,50 +1,68 @@
|
||||
package com.todoroo.astrid.repeats
|
||||
|
||||
import com.natpryce.makeiteasy.MakeItEasy.with
|
||||
import org.tasks.data.entity.Task
|
||||
import com.todoroo.astrid.service.TaskCompleter
|
||||
import dagger.hilt.android.testing.HiltAndroidTest
|
||||
import dagger.hilt.android.testing.UninstallModules
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
import org.tasks.data.TaskDao
|
||||
import org.tasks.data.dao.TaskDao
|
||||
import org.tasks.injection.InjectingTestCase
|
||||
import org.tasks.injection.ProductionModule
|
||||
import org.tasks.makers.TaskMaker.COMPLETION_TIME
|
||||
import org.tasks.makers.TaskMaker.PARENT
|
||||
import org.tasks.makers.TaskMaker.RECUR
|
||||
import org.tasks.makers.TaskMaker.newTask
|
||||
import org.tasks.time.DateTime
|
||||
import org.tasks.time.DateTimeUtils2.currentTimeMillis
|
||||
import javax.inject.Inject
|
||||
|
||||
@UninstallModules(ProductionModule::class)
|
||||
@HiltAndroidTest
|
||||
class RepeatWithSubtasksTests : InjectingTestCase() {
|
||||
@Inject lateinit var taskDao: TaskDao
|
||||
@Inject lateinit var repeat: RepeatTaskHelper
|
||||
@Inject lateinit var taskCompleter: TaskCompleter
|
||||
|
||||
@Test
|
||||
fun uncompleteGrandchildren() = runBlocking {
|
||||
val grandparent = taskDao.createNew(newTask(with(RECUR, "RRULE:FREQ=DAILY")))
|
||||
val parent = taskDao.createNew(newTask(with(PARENT, grandparent)))
|
||||
val child = taskDao.createNew(newTask(
|
||||
with(PARENT, parent),
|
||||
with(COMPLETION_TIME, DateTime())
|
||||
))
|
||||
val grandparent = taskDao.createNew(
|
||||
Task(
|
||||
recurrence = "RRULE:FREQ=DAILY"
|
||||
)
|
||||
)
|
||||
val parent = taskDao.createNew(
|
||||
Task(
|
||||
parent = grandparent
|
||||
)
|
||||
)
|
||||
val child = taskDao.createNew(
|
||||
Task(
|
||||
parent = parent,
|
||||
completionDate = currentTimeMillis(),
|
||||
)
|
||||
)
|
||||
|
||||
repeat.handleRepeat(taskDao.fetch(grandparent)!!)
|
||||
assertTrue(taskDao.fetch(child)!!.isCompleted)
|
||||
|
||||
taskCompleter.setComplete(grandparent)
|
||||
|
||||
assertFalse(taskDao.fetch(child)!!.isCompleted)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun uncompleteGoogleTaskChildren() = runBlocking {
|
||||
val parent = taskDao.createNew(newTask(with(RECUR, "RRULE:FREQ=DAILY")))
|
||||
val child = taskDao.createNew(newTask(
|
||||
with(PARENT, parent),
|
||||
with(COMPLETION_TIME, DateTime())
|
||||
))
|
||||
val parent = taskDao.createNew(
|
||||
Task(
|
||||
recurrence = "RRULE:FREQ=DAILY"
|
||||
)
|
||||
)
|
||||
val child = taskDao.createNew(
|
||||
Task(
|
||||
parent = parent,
|
||||
completionDate = currentTimeMillis(),
|
||||
)
|
||||
)
|
||||
|
||||
assertTrue(taskDao.fetch(child)!!.isCompleted)
|
||||
|
||||
repeat.handleRepeat(taskDao.fetch(parent)!!)
|
||||
taskCompleter.setComplete(parent)
|
||||
|
||||
assertFalse(taskDao.fetch(child)!!.isCompleted)
|
||||
}
|
||||
|
@ -0,0 +1,161 @@
|
||||
package org.tasks.ui.editviewmodel
|
||||
|
||||
import com.todoroo.astrid.core.BuiltInFilterExposer
|
||||
import org.tasks.data.entity.Task
|
||||
import com.todoroo.astrid.service.TaskDeleter
|
||||
import dagger.hilt.android.testing.HiltAndroidTest
|
||||
import dagger.hilt.android.testing.UninstallModules
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
import org.tasks.LocalBroadcastManager
|
||||
import org.tasks.analytics.Firebase
|
||||
import org.tasks.billing.Inventory
|
||||
import org.tasks.data.dao.DeletionDao
|
||||
import org.tasks.data.dao.TaskDao
|
||||
import org.tasks.injection.InjectingTestCase
|
||||
import org.tasks.injection.ProductionModule
|
||||
import org.tasks.preferences.Preferences
|
||||
import org.tasks.time.DateTimeUtils2.currentTimeMillis
|
||||
import org.tasks.ui.TaskListViewModel
|
||||
import javax.inject.Inject
|
||||
|
||||
@UninstallModules(ProductionModule::class)
|
||||
@HiltAndroidTest
|
||||
class TaskListViewModelTest : InjectingTestCase() {
|
||||
private lateinit var viewModel: TaskListViewModel
|
||||
@Inject lateinit var preferences: Preferences
|
||||
@Inject lateinit var taskDao: TaskDao
|
||||
@Inject lateinit var taskDeleter: TaskDeleter
|
||||
@Inject lateinit var deletionDao: DeletionDao
|
||||
@Inject lateinit var localBroadcastManager: LocalBroadcastManager
|
||||
@Inject lateinit var inventory: Inventory
|
||||
@Inject lateinit var firebase: Firebase
|
||||
|
||||
@Before
|
||||
override fun setUp() {
|
||||
super.setUp()
|
||||
viewModel = TaskListViewModel(
|
||||
context = context,
|
||||
preferences = preferences,
|
||||
taskDao = taskDao,
|
||||
deletionDao = deletionDao,
|
||||
taskDeleter = taskDeleter,
|
||||
localBroadcastManager = localBroadcastManager,
|
||||
inventory = inventory,
|
||||
firebase = firebase,
|
||||
)
|
||||
viewModel.setFilter(BuiltInFilterExposer.getMyTasksFilter(context.resources))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun clearCompletedTask() = runBlocking {
|
||||
val task = taskDao.createNew(
|
||||
Task(completionDate = currentTimeMillis())
|
||||
)
|
||||
|
||||
clearCompleted()
|
||||
|
||||
assertTrue(taskDao.fetch(task)!!.isDeleted)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun dontDeleteTaskWithRecurringParent() = runBlocking {
|
||||
val parent = taskDao.createNew(
|
||||
Task(
|
||||
recurrence = "RRULE:FREQ=DAILY;INTERVAL=1"
|
||||
)
|
||||
)
|
||||
val child = taskDao.createNew(
|
||||
Task(
|
||||
parent = parent,
|
||||
completionDate = currentTimeMillis(),
|
||||
)
|
||||
)
|
||||
|
||||
clearCompleted()
|
||||
|
||||
assertFalse(taskDao.fetch(child)!!.isDeleted)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun dontDeleteTaskWithRecurringGrandparent() = runBlocking {
|
||||
val grandparent = taskDao.createNew(
|
||||
Task(recurrence = "RRULE:FREQ=DAILY;INTERVAL=1")
|
||||
)
|
||||
val parent = taskDao.createNew(
|
||||
Task(parent = grandparent)
|
||||
)
|
||||
val child = taskDao.createNew(
|
||||
Task(
|
||||
parent = parent,
|
||||
completionDate = currentTimeMillis(),
|
||||
)
|
||||
)
|
||||
|
||||
clearCompleted()
|
||||
|
||||
assertFalse(taskDao.fetch(child)!!.isDeleted)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun clearGrandchildWithNoRecurringAncestors() = runBlocking {
|
||||
val grandparent = taskDao.createNew(Task())
|
||||
val parent = taskDao.createNew(
|
||||
Task(parent = grandparent)
|
||||
)
|
||||
val child = taskDao.createNew(
|
||||
Task(
|
||||
parent = parent,
|
||||
completionDate = currentTimeMillis(),
|
||||
)
|
||||
)
|
||||
|
||||
clearCompleted()
|
||||
|
||||
assertTrue(taskDao.fetch(child)!!.isDeleted)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun clearGrandchildWithCompletedRecurringAncestor() = runBlocking {
|
||||
val grandparent = taskDao.createNew(
|
||||
Task(
|
||||
recurrence = "RRULE:FREQ=DAILY;INTERVAL=1",
|
||||
completionDate = currentTimeMillis(),
|
||||
)
|
||||
)
|
||||
val parent = taskDao.createNew(
|
||||
Task(parent = grandparent)
|
||||
)
|
||||
val child = taskDao.createNew(
|
||||
Task(
|
||||
parent = parent,
|
||||
completionDate = currentTimeMillis(),
|
||||
)
|
||||
)
|
||||
|
||||
clearCompleted()
|
||||
|
||||
assertTrue(taskDao.fetch(child)!!.isDeleted)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun clearHiddenSubtask() = runBlocking {
|
||||
preferences.showCompleted = false
|
||||
val parent = taskDao.createNew(Task())
|
||||
val child = taskDao.createNew(
|
||||
Task(
|
||||
parent = parent,
|
||||
completionDate = currentTimeMillis(),
|
||||
)
|
||||
)
|
||||
|
||||
clearCompleted()
|
||||
|
||||
assertTrue(taskDao.fetch(child)!!.isDeleted)
|
||||
}
|
||||
|
||||
private suspend fun clearCompleted() = viewModel.markDeleted(viewModel.getTasksToClear())
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
package com.todoroo.andlib.data
|
||||
|
||||
import com.todoroo.andlib.sql.Field
|
||||
|
||||
class Property internal constructor(val name: String?, expression: String) : Field(expression) {
|
||||
|
||||
constructor(table: Table, columnName: String) : this(columnName, "${table.name()}.$columnName")
|
||||
}
|
@ -0,0 +1,205 @@
|
||||
package com.todoroo.astrid.activity
|
||||
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import androidx.lifecycle.SavedStateHandle
|
||||
import androidx.lifecycle.ViewModel
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import com.todoroo.astrid.activity.MainActivity.Companion.LOAD_FILTER
|
||||
import com.todoroo.astrid.activity.MainActivity.Companion.OPEN_FILTER
|
||||
import com.todoroo.astrid.api.CaldavFilter
|
||||
import com.todoroo.astrid.api.CustomFilter
|
||||
import com.todoroo.astrid.api.Filter
|
||||
import com.todoroo.astrid.api.GtasksFilter
|
||||
import com.todoroo.astrid.api.TagFilter
|
||||
import dagger.hilt.android.lifecycle.HiltViewModel
|
||||
import kotlinx.collections.immutable.ImmutableList
|
||||
import kotlinx.collections.immutable.persistentListOf
|
||||
import kotlinx.collections.immutable.toPersistentList
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.asStateFlow
|
||||
import kotlinx.coroutines.flow.update
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import org.tasks.LocalBroadcastManager
|
||||
import org.tasks.R
|
||||
import org.tasks.Tasks.Companion.IS_GENERIC
|
||||
import org.tasks.billing.Inventory
|
||||
import org.tasks.compose.drawer.DrawerItem
|
||||
import org.tasks.data.dao.CaldavDao
|
||||
import org.tasks.data.NO_COUNT
|
||||
import org.tasks.data.entity.Task
|
||||
import org.tasks.data.dao.TaskDao
|
||||
import org.tasks.data.count
|
||||
import org.tasks.filters.FilterProvider
|
||||
import org.tasks.filters.NavigationDrawerSubheader
|
||||
import org.tasks.filters.PlaceFilter
|
||||
import org.tasks.preferences.DefaultFilterProvider
|
||||
import org.tasks.preferences.Preferences
|
||||
import org.tasks.themes.ColorProvider
|
||||
import org.tasks.themes.CustomIcons
|
||||
import timber.log.Timber
|
||||
import javax.inject.Inject
|
||||
|
||||
@HiltViewModel
|
||||
class MainActivityViewModel @Inject constructor(
|
||||
savedStateHandle: SavedStateHandle,
|
||||
private val defaultFilterProvider: DefaultFilterProvider,
|
||||
private val filterProvider: FilterProvider,
|
||||
private val taskDao: TaskDao,
|
||||
private val localBroadcastManager: LocalBroadcastManager,
|
||||
private val inventory: Inventory,
|
||||
private val colorProvider: ColorProvider,
|
||||
private val caldavDao: CaldavDao,
|
||||
private val preferences: Preferences,
|
||||
) : ViewModel() {
|
||||
|
||||
data class State(
|
||||
val begForMoney: Boolean = false,
|
||||
val filter: Filter,
|
||||
val task: Task? = null,
|
||||
val drawerOpen: Boolean = false,
|
||||
val drawerItems: ImmutableList<DrawerItem> = persistentListOf(),
|
||||
)
|
||||
|
||||
private val _state = MutableStateFlow(
|
||||
State(
|
||||
filter = savedStateHandle.get<Filter>(OPEN_FILTER)
|
||||
?: savedStateHandle.get<String>(LOAD_FILTER)?.let {
|
||||
runBlocking { defaultFilterProvider.getFilterFromPreference(it) }
|
||||
}
|
||||
?: runBlocking { defaultFilterProvider.getStartupFilter() },
|
||||
begForMoney = if (IS_GENERIC) !inventory.hasTasksAccount else !inventory.hasPro,
|
||||
)
|
||||
)
|
||||
val state = _state.asStateFlow()
|
||||
|
||||
private val refreshReceiver = object : BroadcastReceiver() {
|
||||
override fun onReceive(context: Context?, intent: Intent?) {
|
||||
when (intent?.action) {
|
||||
LocalBroadcastManager.REFRESH,
|
||||
LocalBroadcastManager.REFRESH_LIST -> updateFilters()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
suspend fun resetFilter() {
|
||||
setFilter(defaultFilterProvider.getDefaultOpenFilter())
|
||||
}
|
||||
|
||||
fun setFilter(
|
||||
filter: Filter,
|
||||
task: Task? = null,
|
||||
) {
|
||||
if (filter == _state.value.filter && task == null) {
|
||||
return
|
||||
}
|
||||
_state.update {
|
||||
it.copy(
|
||||
filter = filter,
|
||||
task = task,
|
||||
)
|
||||
}
|
||||
updateFilters()
|
||||
defaultFilterProvider.setLastViewedFilter(filter)
|
||||
}
|
||||
|
||||
fun setDrawerOpen(open: Boolean) {
|
||||
_state.update { it.copy(drawerOpen = open) }
|
||||
}
|
||||
|
||||
init {
|
||||
localBroadcastManager.registerRefreshListReceiver(refreshReceiver)
|
||||
updateFilters()
|
||||
}
|
||||
|
||||
override fun onCleared() {
|
||||
localBroadcastManager.unregisterReceiver(refreshReceiver)
|
||||
}
|
||||
|
||||
fun updateFilters() = viewModelScope.launch(Dispatchers.Default) {
|
||||
val selected = state.value.filter
|
||||
filterProvider
|
||||
.drawerItems()
|
||||
.map { item ->
|
||||
when (item) {
|
||||
is Filter ->
|
||||
DrawerItem.Filter(
|
||||
title = item.title ?: "",
|
||||
icon = getIcon(item),
|
||||
color = getColor(item),
|
||||
count = item.count.takeIf { it != NO_COUNT } ?: try {
|
||||
taskDao.count(item)
|
||||
} catch (e: Exception) {
|
||||
Timber.e(e)
|
||||
0
|
||||
},
|
||||
selected = item.areItemsTheSame(selected),
|
||||
shareCount = if (item is CaldavFilter) item.principals else 0,
|
||||
type = { item },
|
||||
)
|
||||
is NavigationDrawerSubheader ->
|
||||
DrawerItem.Header(
|
||||
title = item.title ?: "",
|
||||
collapsed = item.isCollapsed,
|
||||
hasError = item.error,
|
||||
canAdd = item.addIntent != null,
|
||||
type = { item },
|
||||
)
|
||||
else -> throw IllegalArgumentException()
|
||||
}
|
||||
}
|
||||
.let { filters -> _state.update { it.copy(drawerItems = filters.toPersistentList()) } }
|
||||
}
|
||||
|
||||
private fun getColor(filter: Filter): Int {
|
||||
if (filter.tint != 0) {
|
||||
val color = colorProvider.getThemeColor(filter.tint, true)
|
||||
if (color.isFree || inventory.purchasedThemes()) {
|
||||
return color.primaryColor
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
private fun getIcon(filter: Filter): Int {
|
||||
if (filter.icon < 1000 || filter.icon == CustomIcons.PLACE || inventory.hasPro) {
|
||||
val icon = CustomIcons.getIconResId(filter.icon)
|
||||
if (icon != null) {
|
||||
return icon
|
||||
}
|
||||
}
|
||||
return when (filter) {
|
||||
is TagFilter -> R.drawable.ic_outline_label_24px
|
||||
is GtasksFilter,
|
||||
is CaldavFilter -> R.drawable.ic_list_24px
|
||||
|
||||
is CustomFilter -> R.drawable.ic_outline_filter_list_24px
|
||||
is PlaceFilter -> R.drawable.ic_outline_place_24px
|
||||
else -> filter.icon
|
||||
}
|
||||
}
|
||||
|
||||
fun toggleCollapsed(subheader: NavigationDrawerSubheader) = viewModelScope.launch {
|
||||
val collapsed = !subheader.isCollapsed
|
||||
when (subheader.subheaderType) {
|
||||
NavigationDrawerSubheader.SubheaderType.PREFERENCE -> {
|
||||
preferences.setBoolean(subheader.id.toInt(), collapsed)
|
||||
localBroadcastManager.broadcastRefreshList()
|
||||
}
|
||||
NavigationDrawerSubheader.SubheaderType.GOOGLE_TASKS,
|
||||
NavigationDrawerSubheader.SubheaderType.CALDAV,
|
||||
NavigationDrawerSubheader.SubheaderType.TASKS,
|
||||
NavigationDrawerSubheader.SubheaderType.ETESYNC -> {
|
||||
caldavDao.setCollapsed(subheader.id, collapsed)
|
||||
localBroadcastManager.broadcastRefreshList()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun setTask(task: Task?) {
|
||||
_state.update { it.copy(task = task) }
|
||||
}
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
package com.todoroo.astrid.adapter
|
||||
|
||||
import android.content.Context
|
||||
import android.view.View
|
||||
import android.widget.ImageView
|
||||
import android.widget.TextView
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.todoroo.astrid.api.FilterListItem
|
||||
import org.tasks.databinding.FilterAdapterActionBinding
|
||||
import org.tasks.themes.DrawableUtil
|
||||
|
||||
class ActionViewHolder internal constructor(
|
||||
private val context: Context,
|
||||
itemView: View,
|
||||
private val onClick: ((FilterListItem?) -> Unit)?) : RecyclerView.ViewHolder(itemView) {
|
||||
|
||||
private val row: View
|
||||
private val text: TextView
|
||||
private val icon: ImageView
|
||||
|
||||
init {
|
||||
FilterAdapterActionBinding.bind(itemView).let {
|
||||
row = it.row
|
||||
text = it.text
|
||||
icon = it.icon
|
||||
}
|
||||
}
|
||||
|
||||
fun bind(filter: FilterListItem) {
|
||||
text.text = filter.listingTitle
|
||||
icon.setImageDrawable(DrawableUtil.getWrapped(context, filter.icon))
|
||||
if (onClick != null) {
|
||||
row.setOnClickListener {
|
||||
onClick.invoke(filter)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
package com.todoroo.astrid.adapter
|
||||
|
||||
import android.view.View
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
|
||||
class SeparatorViewHolder internal constructor(itemView: View) : RecyclerView.ViewHolder(itemView)
|
@ -1,122 +0,0 @@
|
||||
package com.todoroo.astrid.api;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.todoroo.andlib.sql.Criterion;
|
||||
import com.todoroo.andlib.sql.Join;
|
||||
import com.todoroo.andlib.sql.QueryTemplate;
|
||||
import com.todoroo.astrid.data.Task;
|
||||
|
||||
import org.tasks.R;
|
||||
import org.tasks.data.CaldavCalendar;
|
||||
import org.tasks.data.CaldavTask;
|
||||
import org.tasks.data.TaskDao;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
public class CaldavFilter extends Filter {
|
||||
|
||||
/** Parcelable Creator Object */
|
||||
public static final Parcelable.Creator<CaldavFilter> CREATOR =
|
||||
new Parcelable.Creator<>() {
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public CaldavFilter createFromParcel(Parcel source) {
|
||||
CaldavFilter item = new CaldavFilter();
|
||||
item.readFromParcel(source);
|
||||
return item;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public CaldavFilter[] newArray(int size) {
|
||||
return new CaldavFilter[size];
|
||||
}
|
||||
};
|
||||
|
||||
private CaldavCalendar calendar;
|
||||
|
||||
private CaldavFilter() {
|
||||
super();
|
||||
}
|
||||
|
||||
public CaldavFilter(CaldavCalendar calendar) {
|
||||
super(calendar.getName(), queryTemplate(calendar), getValuesForNewTask(calendar));
|
||||
this.calendar = calendar;
|
||||
id = calendar.getId();
|
||||
tint = calendar.getColor();
|
||||
icon = calendar.getIcon();
|
||||
order = calendar.getOrder();
|
||||
}
|
||||
|
||||
private static QueryTemplate queryTemplate(CaldavCalendar caldavCalendar) {
|
||||
return new QueryTemplate()
|
||||
.join(Join.left(CaldavTask.TABLE, Task.ID.eq(CaldavTask.TASK)))
|
||||
.where(getCriterion(caldavCalendar));
|
||||
}
|
||||
|
||||
private static Criterion getCriterion(CaldavCalendar caldavCalendar) {
|
||||
return Criterion.and(
|
||||
TaskDao.TaskCriteria.activeAndVisible(),
|
||||
CaldavTask.DELETED.eq(0),
|
||||
CaldavTask.CALENDAR.eq(caldavCalendar.getUuid()));
|
||||
}
|
||||
|
||||
private static Map<String, Object> getValuesForNewTask(CaldavCalendar caldavCalendar) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
result.put(CaldavTask.KEY, caldavCalendar.getUuid());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String getUuid() {
|
||||
return calendar.getUuid();
|
||||
}
|
||||
|
||||
public String getAccount() {
|
||||
return calendar.getAccount();
|
||||
}
|
||||
|
||||
public CaldavCalendar getCalendar() {
|
||||
return calendar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isReadOnly() {
|
||||
return calendar.getAccess() == CaldavCalendar.ACCESS_READ_ONLY;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
super.writeToParcel(dest, flags);
|
||||
dest.writeParcelable(calendar, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void readFromParcel(Parcel source) {
|
||||
super.readFromParcel(source);
|
||||
calendar = source.readParcelable(getClass().getClassLoader());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsManualSort() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMenu() {
|
||||
return R.menu.menu_caldav_list_fragment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean areContentsTheSame(@NonNull FilterListItem other) {
|
||||
return super.areContentsTheSame(other)
|
||||
&& Objects.equals(calendar, ((CaldavFilter) other).calendar);
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package com.todoroo.astrid.api
|
||||
|
||||
import org.tasks.data.sql.Criterion.Companion.and
|
||||
import org.tasks.data.sql.Join.Companion.left
|
||||
import org.tasks.data.sql.QueryTemplate
|
||||
import com.todoroo.andlib.utility.AndroidUtilities
|
||||
import kotlinx.parcelize.Parcelize
|
||||
import org.tasks.data.entity.CaldavCalendar
|
||||
import org.tasks.data.entity.CaldavTask
|
||||
import org.tasks.data.NO_COUNT
|
||||
import org.tasks.data.entity.Task
|
||||
import org.tasks.data.dao.TaskDao.TaskCriteria.activeAndVisible
|
||||
|
||||
@Parcelize
|
||||
data class CaldavFilter(
|
||||
val calendar: CaldavCalendar,
|
||||
val principals: Int = 0,
|
||||
override val count: Int = NO_COUNT,
|
||||
) : Filter {
|
||||
override val title: String?
|
||||
get() = calendar.name
|
||||
override val sql: String
|
||||
get() = QueryTemplate()
|
||||
.join(left(CaldavTask.TABLE, Task.ID.eq(CaldavTask.TASK)))
|
||||
.where(
|
||||
and(
|
||||
activeAndVisible(),
|
||||
CaldavTask.DELETED.eq(0),
|
||||
CaldavTask.CALENDAR.eq(calendar.uuid)
|
||||
)
|
||||
)
|
||||
.toString()
|
||||
override val valuesForNewTasks: String
|
||||
get() = AndroidUtilities.mapToSerializedString(mapOf(CaldavTask.KEY to calendar.uuid!!))
|
||||
|
||||
override val order: Int
|
||||
get() = calendar.order
|
||||
|
||||
override val tint: Int
|
||||
get() = calendar.color
|
||||
override val icon: Int
|
||||
get() = calendar.getIcon()!!
|
||||
|
||||
val uuid: String
|
||||
get() = calendar.uuid!!
|
||||
val account: String
|
||||
get() = calendar.account!!
|
||||
|
||||
override val isReadOnly: Boolean
|
||||
get() = calendar.access == CaldavCalendar.ACCESS_READ_ONLY
|
||||
|
||||
override fun supportsManualSort() = true
|
||||
|
||||
override fun areItemsTheSame(other: FilterListItem): Boolean {
|
||||
return other is CaldavFilter && calendar.id == other.calendar.id
|
||||
}
|
||||
}
|
@ -1,73 +0,0 @@
|
||||
package com.todoroo.astrid.api;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import org.tasks.R;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class CustomFilter extends Filter {
|
||||
|
||||
/** Parcelable Creator Object */
|
||||
public static final Parcelable.Creator<CustomFilter> CREATOR =
|
||||
new Parcelable.Creator<>() {
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public CustomFilter createFromParcel(Parcel source) {
|
||||
return new CustomFilter(source);
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public CustomFilter[] newArray(int size) {
|
||||
return new CustomFilter[size];
|
||||
}
|
||||
};
|
||||
|
||||
private String criterion;
|
||||
|
||||
public CustomFilter(@NonNull org.tasks.data.Filter filter) {
|
||||
super(filter.getTitle(), filter.getSql(), filter.getValuesAsMap());
|
||||
id = filter.getId();
|
||||
criterion = filter.getCriterion();
|
||||
tint = filter.getColor();
|
||||
icon = filter.getIcon();
|
||||
order = filter.getOrder();
|
||||
}
|
||||
|
||||
private CustomFilter(Parcel parcel) {
|
||||
readFromParcel(parcel);
|
||||
}
|
||||
|
||||
public String getCriterion() {
|
||||
return criterion;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public void writeToParcel(Parcel dest, int flags) {
|
||||
super.writeToParcel(dest, flags);
|
||||
dest.writeString(criterion);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void readFromParcel(Parcel source) {
|
||||
super.readFromParcel(source);
|
||||
criterion = source.readString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMenu() {
|
||||
return getId() > 0 ? R.menu.menu_custom_filter : 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean areContentsTheSame(@NonNull FilterListItem other) {
|
||||
return super.areContentsTheSame(other)
|
||||
&& Objects.equals(criterion, ((CustomFilter) other).criterion);
|
||||
}
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.todoroo.astrid.api
|
||||
|
||||
import kotlinx.parcelize.Parcelize
|
||||
import org.tasks.themes.CustomIcons
|
||||
|
||||
@Parcelize
|
||||
data class CustomFilter(
|
||||
val filter: org.tasks.data.entity.Filter,
|
||||
) : Filter {
|
||||
override val title: String?
|
||||
get() = filter.title
|
||||
override val sql: String
|
||||
get() = filter.sql!!
|
||||
|
||||
override val valuesForNewTasks: String?
|
||||
get() = filter.values
|
||||
|
||||
val criterion: String?
|
||||
get() = filter.criterion
|
||||
|
||||
override val order: Int
|
||||
get() = filter.order
|
||||
|
||||
val id: Long
|
||||
get() = filter.id
|
||||
override val icon: Int
|
||||
get() = filter.icon ?: CustomIcons.FILTER
|
||||
override val tint: Int
|
||||
get() = filter.color ?: 0
|
||||
|
||||
override fun areItemsTheSame(other: FilterListItem): Boolean {
|
||||
return other is CustomFilter && id == other.id
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue