Sylvia van Os
3fffc83c08
Fix importing pkpasses file from network location
...
In the scan activity, the mime type info is not always available. This
made pkpasses files fail to parse, because they only went down the
pkpass path
2026-09-07 21:23:34 +02:00
TheLastProject
40295f7f37
Update contributors
2026-09-06 08:23:06 +00:00
Matt Van Horn and Matt Van Horn
f3424b716d
fix: Import cloud-backed PKPASS files off the main thread ( #3282 )
...
* fix: Import cloud-backed PKPASS files off the main thread
Fixes #2464
* Address review: move all import parsing off the main thread, restore failure toasts
- Route image/PDF/pkpass/espass imports through one background importFile
- Restore errorReadingFile / errorReadingImage / noBarcodeFound toasts via a
main-looper-marshalling showToast helper
- Replace fixed-timeout awaits in the activity tests with a waitFor predicate
* Start the import coroutine on the main dispatcher, hop to IO for the read
launch(Dispatchers.IO) starts the coroutine on a background thread immediately,
so a paused Robolectric main looper never drives it and the activity tests time
out. Launch on the lifecycle scope's default (main) dispatcher and wrap only the
blocking read in withContext(Dispatchers.IO).
* Fix the two failing import tests
Two separate bugs, both in the tests I added:
- new Intent(ACTION_VIEW, uri).setType(...) clears the data URI (setType and
setData clear each other), so the activity received a null Uri and the read
never started. Use setDataAndType.
- The intermediate-state assertions (no started activity / RESULT_CANCELED)
are not observable: waiting on the main looper drains it, and Robolectric
drains it again during .visible(), so the import has already run to
completion by the time the test regains control. Assert the off-main-thread
read directly instead, which is the property these tests exist to prove.
* fix: make showToast reusable with a caller-supplied duration
Take the toast length as a parameter instead of hardcoding LENGTH_LONG, so
the helper can serve short toasts too, and document why it exists: it shows
the toast directly when already on the main looper and otherwise posts it
there, which is what the off-main-thread import path needs.
Reorders the modifiers to the file's `static private` convention.
All existing call sites pass LENGTH_LONG, so behavior is unchanged.
---------
Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com >
2026-09-05 12:31:04 +02:00
Arif Budiman
9344df33d7
Translated using Weblate (Indonesian)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/id/
2026-08-30 17:52:49 +02:00
泥鰍
fbec74ae54
Translated using Weblate (Chinese (Traditional Han script))
...
Currently translated at 90.8% (326 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/zh_Hant/
2026-08-30 17:52:48 +02:00
Joel A
d493733abd
Translated using Weblate (Swedish)
...
Currently translated at 95.2% (342 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/sv/
2026-08-30 17:52:47 +02:00
TheLastProject
3bb8b94c6d
Update contributors
2026-08-30 09:43:23 +00:00
Hosted Weblate
1a9d162370
Update translation files
...
Updated by "Remove blank strings" hook in Weblate.
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/
2026-08-28 17:06:43 +02:00
Sylvia van Os
950d19ce8c
Translated using Weblate (Persian)
...
Currently translated at 81.8% (294 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/fa/
2026-08-28 17:06:43 +02:00
delvani
4bc38a1162
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/pt_BR/
2026-08-26 19:52:19 +00:00
امیرضا
69ce67cda4
Translated using Weblate (Persian)
...
Currently translated at 82.4% (296 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/fa/
2026-08-26 19:52:19 +00:00
Fjuro
ce76901d6e
Translated using Weblate (Czech)
...
Currently translated at 100.0% (1 of 1 strings)
Translation: Catima/Android (Debug)
Translate-URL: https://hosted.weblate.org/projects/catima/android-debug/cs/
2026-08-26 19:52:18 +00:00
J. Lavoie
f93e7d857a
Translated using Weblate (Italian)
...
Currently translated at 90.8% (326 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/it/
2026-08-26 19:52:17 +00:00
J. Lavoie
1b894e5043
Translated using Weblate (French)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/fr/
2026-08-26 19:52:17 +00:00
Hugo Perez Montero
efdb68cb90
Translated using Weblate (Catalan)
...
Currently translated at 71.5% (257 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/ca/
2026-08-25 16:51:43 +00:00
Sylvia van Os
59e2083511
Update list widgets on card open
...
This ensures the order is correct for users who sort by most recently
used
2026-08-24 23:22:46 +02:00
Audrick Stephan Moraes
24bd17eb9c
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 97.4% (350 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/pt_BR/
2026-08-24 08:52:41 +02:00
Arif Budiman
33653fab99
Translated using Weblate (Indonesian)
...
Currently translated at 99.7% (358 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/id/
2026-08-24 08:52:41 +02:00
109247019824
9efb246133
Translated using Weblate (Bulgarian)
...
Currently translated at 91.6% (329 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/bg/
2026-08-24 08:52:40 +02:00
Roberto Angel
e807e1f4ff
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/es/
2026-08-24 08:52:39 +02:00
TheLastProject
4030cd0284
Update contributors
2026-08-23 04:34:18 +00:00
josé m.
2cd3b4a131
Translated using Weblate (Galician)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/gl/
2026-08-21 11:53:24 +00:00
NooB9496
0656767d07
Translated using Weblate (Polish)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/pl/
2026-08-21 11:53:21 +00:00
AhmedAwad
03ba942423
Translated using Weblate (Arabic)
...
Currently translated at 99.7% (358 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/ar/
2026-08-17 00:50:38 +02:00
Eisa Ali
67d812b291
Translated using Weblate (Arabic)
...
Currently translated at 99.7% (358 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/ar/
2026-08-17 00:50:38 +02:00
B o d o
e9ca16ffd3
Translated using Weblate (German)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/de/
2026-08-17 00:50:38 +02:00
TheLastProject
dfc27cf4fe
Update contributors
2026-08-16 04:33:53 +00:00
Sylvia van Os
74b248f565
Translated using Weblate (Serbian)
...
Currently translated at 97.2% (349 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/sr/
2026-08-15 15:10:05 +02:00
Stephan Paternotte
944fa35f83
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/nl/
2026-08-15 15:10:03 +02:00
Sylvia van Os
d4196e4029
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/nl/
2026-08-15 15:10:03 +02:00
Sylvain Pichon
62866c93db
Translated using Weblate (French)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/fr/
2026-08-15 15:10:02 +02:00
Vasilis K.
db03cdcb3e
Translated using Weblate (Greek)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/el/
2026-08-15 15:10:02 +02:00
Petar Mladenović (retr0_master)
4e976caaaf
Translated using Weblate (Serbian)
...
Currently translated at 97.2% (349 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/sr/
2026-08-14 09:14:14 +02:00
Stephan Paternotte
8eb2dc61d7
Translated using Weblate (Dutch)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/nl/
2026-08-14 09:14:09 +02:00
Petar Mladenović (retr0_master)
c001e317ec
Translated using Weblate (Serbian)
...
Currently translated at 91.0% (327 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/sr/
2026-08-14 03:59:34 +00:00
Edgars Andersons
84e092fce4
Translated using Weblate (Latvian)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/lv/
2026-08-14 03:59:33 +00:00
Priit Jõerüüt
b3573891bf
Translated using Weblate (Estonian)
...
Currently translated at 100.0% (1 of 1 strings)
Translation: Catima/Android (Debug)
Translate-URL: https://hosted.weblate.org/projects/catima/android-debug/et/
2026-08-13 19:38:47 +02:00
Priit Jõerüüt
19c277b5b7
Translated using Weblate (Estonian)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/et/
2026-08-13 19:38:01 +02:00
Oğuz Ersen
e5b1c209de
Translated using Weblate (Turkish)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/tr/
2026-08-13 19:37:57 +02:00
Hosted Weblate user 54392
96533db864
Translated using Weblate (Chinese (Simplified Han script))
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/zh_Hans/
2026-08-13 19:37:56 +02:00
Liner Seven
078b708c8a
Translated using Weblate (Japanese)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/ja/
2026-08-13 19:37:54 +02:00
solokot
449a89a6f3
Translated using Weblate (Russian)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/ru/
2026-08-13 19:37:53 +02:00
Kachelkaiser
246605e3ca
Translated using Weblate (German)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/de/
2026-08-13 19:37:52 +02:00
Fjuro
2ddc36bada
Translated using Weblate (Czech)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/cs/
2026-08-13 19:37:52 +02:00
ChaoticNeutralCzech
1e512bac09
Translated using Weblate (Czech)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/cs/
2026-08-13 19:37:51 +02:00
Slávek Banko
60ec5d2520
Translated using Weblate (Czech)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/cs/
2026-08-13 19:37:51 +02:00
Vasilis K.
ad5449488f
Translated using Weblate (Greek)
...
Currently translated at 91.0% (327 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/el/
2026-08-12 20:46:13 +02:00
B o d o
5d9caa27fe
Translated using Weblate (German)
...
Currently translated at 100.0% (359 of 359 strings)
Translation: Catima/Android
Translate-URL: https://hosted.weblate.org/projects/catima/catima/de/
2026-08-12 20:46:13 +02:00
Sylvia van Os
bfa79a6f68
Notify on foreground service start failure
2026-08-11 22:06:01 +02:00
Sylvia van Os
2960585250
Prepare new versioning and CHANGELOG structure
2026-08-11 22:06:01 +02:00