Sylvia van Os
2c96b11725
Various widget bugfixes
...
Widget now updates on sorting order change and no cards is correctly
detected
2025-07-31 21:50:59 +02:00
Sylvia van Os
acc72c0937
Rename from CatimaWidget to ListWidget
...
This makes the codebase easier to understand if we get more widget types
in the future
2025-07-30 21:23:14 +02:00
Sylvia van Os
54c27f7038
Refactor widget to be the same size as regular cards
...
This isn't as automatic as I would've liked, but with some manual
trial-and-error I think this works well enough in keeping the aspect
ratio while somewhat "scaling" based on size (at least the number of
columns are scaled)
2025-07-30 21:23:14 +02:00
Sylvia van Os
7277ff26fc
Refactor deprecated widget code
...
This replaces the deprecated widget method with the new one and ensures
it consistently updates on changes.
2025-07-30 21:23:14 +02:00
realwk
9a0149def8
Initial widget work
...
Co-authored-by: Sylvia van Os <sylvia@hackerchick.me >
2025-07-30 21:23:14 +02:00
StellarSand
96359e5942
minor changes
2025-07-28 04:03:06 +05:30
StellarSand
bf63390f65
convert BarcodeSelectorActivity to kotlin
2025-07-28 02:47:58 +05:30
StellarSand
6f54981333
Rename .java to .kt
2025-07-28 02:47:58 +05:30
StellarSand
aed145239b
convert CardShortcutConfigure to kotlin
2025-07-28 02:47:44 +05:30
StellarSand
99a8c917b9
Rename .java to .kt
2025-07-28 02:47:44 +05:30
StellarSand
996cd2cd2c
Proper fix for FAB being hidden by keyboard ( #2579 )
2025-07-25 20:04:24 +02:00
StellarSand
b3356b6575
close keypad if open on back pressed
2025-07-18 02:24:26 +05:30
Yash R. Dhake
bcb7df24ec
Optimize resizeBitmap(): Skip resizing for already-small images ( #2565 )
...
Co-authored-by: Sylvia van Os <sylvia@hackerchick.me >
2025-06-29 21:24:12 +02:00
Sylvia van Os
4cb601e0ce
Rewrite loop that stopped working in Kotlin 2.1.21
2025-06-02 23:11:43 +02:00
Sylvia van Os
e893923164
Remove spotBugs
...
We've been running an old version for very long because there hasn't
been any time to update it. A newer version doesn't support Java 21.
Given Java 21 ihas more priority, let's just get rid of spotBugs.
2025-05-14 20:53:14 +02:00
Sylvia van Os
caeba57a42
Fix crash on pkpass with no barcodes
2025-05-12 19:34:51 +02:00
Sylvia van Os
88019dcae3
Also apply inverted scanning to camera
2025-05-07 22:56:48 +02:00
herodotos
35f88ca386
Fix for coloured QR code fails to scan #2366
2025-05-07 08:19:13 +02:00
Sylvia van Os
e3e1e0c85b
Fix icons having white/black lines
...
It's extremely hard to perfectly reach the 85.6:53.98 ratio, so if the
image is cropped close enough to it, we enable center cropping. This
allows a bit of the edges to be cut off to fully fill the image area.
2025-04-24 18:16:49 +02:00
perepujal
4b77700b97
Merge pull request #2254 from perepujal/main
...
Adding the ability to resize the width in the fullscreen view.
2025-04-21 17:06:49 +02:00
Sylvia van Os
ac5d15578f
Remove confusing import from app function
2025-04-06 20:54:22 +02:00
Sylvia van Os
2c77dcadb5
Support pkpass files without any extra data
...
Previously, the code assumed one of "boardingPass", "coupon", "eventTicket", "generic" existed and refused to pass a pkpass file without any of them
2025-03-17 18:37:28 +01:00
Sylvia van Os
91ee846054
Fix pkpass reading crashing Catima
2025-03-14 22:09:04 +01:00
Sylvia van Os
cc7553850a
Target Android 15
...
We apply window insets to basically not draw behind the top and bottom
bar. While this is a slight visual downgrade (we used to draw behind the
top bar before), it at least allows us to target Android 15.
2025-03-09 16:51:06 +01:00
juuce79
1a892b2de3
Kotlin conversion of AboutActivity with tests also in Kotlin ( #2360 )
2025-03-02 13:30:10 +01:00
Christos Tsingiropoylos
9a1d7d2e44
Sort by valid from date ( #2297 )
2025-01-15 22:01:25 +01:00
Sylvia van Os
d6bbd16945
Add unofficial support for espass
...
While espass files aren't pkpass files, they are so similar we can
generally parse them fine with the pkpass parser. While this feature
shouldn't be advertised as it is kinda hacky, it does make it easier for
PassAndroid users to share cards with Catima users.
2025-01-11 12:38:03 +01:00
Sylvia van Os
5c5a1df39d
Also parse application/vnd-com.apple.pkpass as pkpass files
2025-01-11 12:19:48 +01:00
Sylvia van Os
eebbe6dec8
Improve star and archive display
...
By improving the icons to all have a small border, they will be visible
on every background and we can severely simplify the code
2024-12-25 21:06:15 +01:00
Sylvia van Os
91551bf4e8
Start using flavours
...
Currently, this just allows us to remove the donation button on Google
Play without using the deprecated installer APIs.
In the future, this should allow us to also release multiple versions of
Catima (for example: WearOS is a commonly requested feature, but this
needs non-free dependencies, which may not be okay to all users).
2024-12-24 14:33:35 +01:00
Sylvia van Os
75c393af92
Fix crash when trying to load invalid pkpass file
2024-12-12 17:13:49 +01:00
Sylvia van Os
8009baca26
Remove unnecessary image load from storage calls
...
The LoyaltyCard object itself loads the images itself
2024-12-07 15:23:07 +01:00
Sylvia van Os
e0786594bc
Load images on request
...
This prevents loading the front and back images when scrolling through
the loyalty card list and should allow scaling to more images/files more
easily
2024-12-07 15:23:07 +01:00
Sylvia van Os
7fe67960bf
Move TaskHandler to ViewModel
...
This should make it possible to properly cancel the running barcode
generation threads on rotation and prevent CPU rising on many rotations.
2024-12-07 15:23:07 +01:00
Sylvia van Os
83fca93649
Use ViewModel to prevent hammering storage
...
When you turn a LoyaltyCard into a bundle, it writes the files to
storage as it can't otherwise fit in the limited storage size. This
means that, on rotation, you write all images to storage and load them
again. Using a ViewModel prevents that storage hit due to holding it in
memory (as a ViewModel has a longer lifecycle).
2024-12-07 15:23:07 +01:00
Sylvia van Os
96a9850d9c
Delete old cache files on startup
2024-12-07 15:23:07 +01:00
Sylvia van Os
1cb9ddecac
Support for returning images from PkpassParser
2024-12-07 15:23:07 +01:00
Sylvia van Os
f7697ce8bf
Support opening supported barcode files directly
2024-12-07 15:23:07 +01:00
Sylvia van Os
9358348795
Add option to share pkpass file to Catima
2024-12-07 15:23:07 +01:00
Sylvia van Os
711ca1e761
Add option to load pkpass from ScanActivity
2024-12-07 15:23:07 +01:00
Sylvia van Os
8eeff0058b
Refactor ScanActivity result code (use ParseResult)
2024-12-07 15:23:07 +01:00
Sylvia van Os
ea456c6d80
Add Pkpass parser
2024-12-07 15:23:05 +01:00
Sylvia van Os
4dd85f845e
Fix background colour for shortcuts
2024-12-05 18:52:27 +01:00
Sylvia van Os
e6345bc2fe
Make thumbnails in edit view consistent with card view
...
Commit 88c1dd1bc6 changed the behaviour of
the background colour of the thumbnails, but the edit view still used
the old behaviour. This creates more consistency.
2024-12-03 00:33:21 +01:00
Sylvia van Os
88c1dd1bc6
Use black/white background colour instead of dominant colour for images
...
This severely reduces the risk of a transparent PNG being put on a
background which is the same colour as the logo
2024-11-29 17:37:03 +01:00
Sylvia van Os
389372e8f3
Fix parsing PDF with transparent background
2024-11-18 22:03:41 +01:00
Sylvia van Os
9c5603eae6
Use MEDIUM instead of FULL date format on main screen
...
This improves the display of high column counts
2024-11-11 17:50:14 +01:00
vp193dt
6f4582eec9
Refactoring of Search Behavior: Restoring of Previous Search Query After Coming Back from Card Interaction or Screen Rotation on Search
2024-11-06 19:12:01 +01:00
Sylvia van Os
d7b8cd7e03
More consistant naming and column edge case bugfix for shortcut picker
2024-11-02 13:45:25 +01:00
Sylvia van Os
dc65030a63
Padding fixes to ensure the cards scale well without changing text size in LoyaltyCardViewActivity
2024-11-01 22:35:33 +01:00