Commit Graph

143 Commits

Author SHA1 Message Date
Aayush Gupta
635ec748b3 Catima: Migrate to view binding
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
2022-10-05 00:20:31 +05:30
Sylvia van Os
5bfca6e428 Always update last used when creating or editing a card 2022-09-08 19:27:31 +02:00
Sylvia van Os
83d19c30c2 Throw more exceptions
We want to know when the code is wrong instead of silently failing
2022-08-25 19:28:09 +02:00
Sylvia van Os
7a6232c8b6 Make spotBugs happy 2022-07-27 21:37:44 +02:00
Sylvia van Os
34bbfffdaf Make the possibility to set a custom header more visible 2022-07-27 21:22:59 +02:00
Sylvia van Os
11bb1aa126 Remove unused imports 2022-07-24 18:42:16 +02:00
Sylvia van Os
688010cae4 Fixes to currency parsing 2022-07-24 18:14:49 +02:00
Alajemba
e2c621ec1f Wrapped call to launch photo picker in LoyaltyCardEditActivity in try-catch block 2022-06-30 20:57:26 +00:00
Jasielprogramador
548b1b1e8e Archive support 2022-06-16 22:59:11 +02:00
pooyanazari
1c4b4f1f25 Set min date for expire date 2022-06-06 21:58:29 +04:30
Sylvia van Os
05f3b77a73 Various minor fixes 2022-05-25 21:06:43 +02:00
Asier
00b0502a6a Add card duplication feature 2022-05-25 21:03:11 +02:00
Sylvia van Os
420886bc3f Make SpotBugs happy 2022-03-22 21:59:35 +01:00
Sylvia van Os
86a01d36db Fix background color generation 2022-03-22 21:46:37 +01:00
Sylvia van Os
61578a6016 Consistency improvements 2022-03-08 19:56:42 +01:00
Sylvia van Os
a5901700b4 Fix crash in edit activity on locale without region 2022-02-11 18:45:28 +01:00
Katharine Chui
3d138c9504 ucrop toolbar typeface 2022-02-03 20:40:52 +08:00
Katharine Chui
6224a13d17 ucrop color 2022-02-03 17:53:32 +08:00
Sylvia van Os
917e60a7f5 Fix lint 2022-01-26 22:58:02 +01:00
Sylvia van Os
9887e19ec9 Fix cropper not using theme colour 2022-01-26 22:38:02 +01:00
Sylvia van Os
355c2f9ceb Material You redesign 2022-01-14 20:27:11 +01:00
Sylvia van Os
a7a775bc01 Put all barcode related fields together in the edit screen 2022-01-02 21:40:44 +01:00
Sylvia van Os
af831cfdbd Fixed pressing the save button multiple times creating multiple entries
Fixes #691
2021-12-26 21:20:27 +01:00
bors[bot]
8ce0ce82ef Merge #680
680: Cleanup DBHelper r=TheLastProject a=TheLastProject

Should fix #661 

Supersedes #678 

While #678 does fix the issue too, the real issue was that an importer could cause such a state issue. So I've instead been seriously cleaning up. While all the tests pass, I do want to test this slightly longer before merging it into master.

Co-authored-by: Sylvia van Os <sylvia@hackerchick.me>
2021-12-14 19:24:29 +00:00
Katharine Chui
1d41039de2 674 currency symbol order fixes (#679) 2021-12-14 17:26:18 +01:00
Sylvia van Os
f2e820f7bb Cleanup DBHelper 2021-12-13 22:47:12 +01:00
Sylvia van Os
15f5c4a67b Make cropper respect custom theme choice 2021-11-28 14:54:49 +01:00
Sylvia van Os
49200fff48 Fix most spotBugs issues 2021-11-23 23:23:58 +01:00
Sylvia van Os
5e15555ad4 Fix deprecations 2021-11-19 15:07:04 +01:00
Sylvia van Os
e592452d02 Use card shape for icons by default 2021-11-18 15:41:48 +01:00
Sylvia van Os
2536767437 Android Studio -> Reformat Code 2021-11-14 21:55:33 +01:00
Katharine
40a68a55e2 simplify adaptive bitmap creation with Canvas, trigger shortcut list refresh on card save 2021-11-10 14:06:08 +08:00
bors[bot]
472d8ae18d Merge #577
577: offer 1:1 by default when cropping icon, set header color only for icon r=TheLastProject a=Kethen

header color is only change after an icon is set
cropper offers 1:1 by default instead when an icon is getting cropped

Co-authored-by: Katharine <kwchuiaa@connect.ust.hk>
2021-11-08 18:45:38 +00:00
Sylvia van Os
388db6feab Uppercase Card for consistency too 2021-11-08 19:42:51 +01:00
Katharine
5833d49fbf offer 1:1 by default when cropping icon, set header color only for icon 2021-11-08 19:10:41 +08:00
Sylvia van Os
af4075b9e2 Choose image as card icon (#333) 2021-11-07 20:27:28 +01:00
Sylvia van Os
11970004f0 Android Studio reformat 2021-11-07 15:38:55 +01:00
Katharine
dd981d72d7 do not attempt image load if removed, typo fixes, do not cast literals, offer full image on cropper start 2021-11-06 12:47:08 +08:00
Katharine
8940a8ea77 card edit activity: revised instance saving, revised temp image handling 2021-11-05 00:01:03 +08:00
Katharine
57cfac3172 save state for cropper 2021-11-04 10:48:47 +08:00
Katharine
f475844bd0 wrapping up test case debugging 2021-11-04 10:48:47 +08:00
Katharine
4536453fdf debugging test case breakage 2021-11-04 10:48:47 +08:00
Katharine
3ee533b815 migrate to registerForActivityResult callbacks 2021-11-04 10:48:47 +08:00
Katharine
a744c19cce handle null intent from ucrop for when user just exits without finish cropping 2021-11-04 10:48:46 +08:00
Katharine
9cc66c5d67 minor touch ups from android studio suggestions 2021-11-04 10:48:46 +08:00
Katharine
3e5b018b55 fxing spotbug raised issues 2021-11-04 10:48:46 +08:00
Katharine
f6fee780ee cropper poc 2021-11-04 10:48:32 +08:00
Ankit Tiwari
127d53e85a Save Size of code (#508) 2021-10-22 21:11:51 +02:00
waffshappen
5faa28a7e7 Replace AsyncTask with a Compatiblity Layer and further Compat Fixes (#511) 2021-10-20 19:47:06 +02:00
waffshappen
48e1fcc38e TargetSDK, Version Upgrades, Deprecations and XLint (#405)
* Updated TargetSdk, enabled showing Deprecations by default (Warn) and implement some replacements for deprecated Methods
2021-09-21 20:21:02 +02:00