Commit Graph
100 Commits
Author SHA1 Message Date
José Rebelo 7aa7de6463 Colmi R0x: Remove all background tasks on dispose
Somehow, the tasks were not being fully removed on dispose, which would
result in a crash. I am not able to reproduce the issue reliably, but
removing all the background tasks on dispose should fix the issue.
2024-11-21 22:52:04 +00:00
José Rebelo 6b5c5ae0ac Garmin: Fix weather temperature conversion to celsius 2024-11-19 20:57:04 +00:00
José Rebelo 9d1a57b6c2 Fix crash in some chart pages (#4319) 2024-11-19 20:53:34 +00:00
José Rebelo 1d2404a4e6 Garmin: Display AGPS age 2024-11-17 19:00:00 +00:00
José Rebelo 5f91715c89 Realme Buds T110: Initial support 2024-11-17 17:23:23 +00:00
José Rebelo 1618fda418 Log exceptions during DBAccess async tasks 2024-11-17 00:01:40 +00:00
José Rebelo e453855e88 Do not suppress repeated notifications if timestamp is in the future (#4327) 2024-11-16 21:46:22 +00:00
José Rebelo 1a3a7dec05 Prevent heart rate average from using invalid samples 2024-11-16 14:08:06 +00:00
José Rebelo 87bc2e6ed7 Fix imperial unit on steps charts 2024-11-15 23:16:40 +00:00
José Rebelo f16e2eeabb Test device: Add dummy activities 2024-11-14 23:22:18 +00:00
José Rebelo 9b6fce566d Mi Band 9: Fix outdoor cycling parsing 2024-11-12 23:32:11 +00:00
José Rebelo 82f221752e Compute activity average speed 2024-11-10 22:50:58 +00:00
José Rebelo c2c1e48c85 Update changelog 2024-11-10 22:39:55 +00:00
José Rebelo 810df3055c Garmin Forerunner 55/620: Initial support 2024-11-10 22:33:48 +00:00
José Rebelo a72de07d2a Oppo Enco Air: Initial support 2024-11-10 22:18:41 +00:00
José Rebelo 7a0e43a4de GBDevice: Do not unset firmware from dynamic state
It is not clear why this was being done, but it is the source of issues
for multiple devices, since the ensureDeviceUpToDate function will
attempt to persist the null values, in non-nullable columns.
2024-11-10 22:16:14 +00:00
José Rebelo a2323ce845 Withings: Fix crash on connection 2024-11-09 08:16:12 +00:00
José Rebelo 46dd45cb4e Garmin Forerunner 235: Initial support 2024-10-31 23:47:20 +00:00
José Rebelo cd068abdd3 Update androidx.camera to v1.4.0 2024-10-31 23:44:46 +00:00
José Rebelo aa2b6d142a Update androidx.constraintlayout to v2.2.0 2024-10-31 23:44:27 +00:00
José Rebelo d9cc15e3c5 Update androidx.fragment:fragment to v1.8.5 2024-10-31 23:43:51 +00:00
José Rebelo ed1f1735c5 Update changelogs 2024-10-30 20:51:39 +00:00
José Rebelo 292a5d11b5 Activity Charts: Update date info when refreshed 2024-10-30 20:51:02 +00:00
José Rebelo 29866c2b41 Fix linter 2024-10-29 11:23:12 +00:00
José Rebelo 35ca3f947e Fix nightly healthcheck variables 2024-10-27 23:11:20 +00:00
José Rebelo 7acda0d52c Add basic nightly pipeline monitoring 2024-10-27 14:18:08 +00:00
José Rebelo 212bf996c3 Update changelog 2024-10-27 14:15:28 +00:00
José Rebelo ba82de99d3 Garmin: Upload workout fit files 2024-10-26 21:03:58 +01:00
José Rebelo 8b4f1aa1d7 Fix light navbar buttons on light themes for SDK27+
SDK 21 to 27 still needs some work, but we need to review all of this
for the edge-to-edge enforced by Android 15 anyway.
2024-10-26 18:03:32 +01:00
José Rebelo bbadb2b1ef Garmin: Fix crash on timezones without DST 2024-10-26 16:53:30 +01:00
José Rebelo c628ce2c97 Garmin: Fix all-day events
As per the CalendarContract, the begin timestamp corresponds to the UTC
midnight-boundary of the start of the day.

- Remove the redundant logic to truncate the date to the start of day
- Remove the workaround for negative timezones (confirmed not workin
  with some EDT users)
- Ensure birthdays also respect the UTC boundary
- Offset the garmin timestamps by the UTC offset, ensuring they match
  midnight on the user's timezome (fixes all-day events offset by 1 day)
2024-10-26 11:53:20 +01:00
José Rebelo 22eebf9592 Garmin Fenix 7: Initial support 2024-10-25 18:18:41 +01:00
José Rebelo 9d741a7189 Update changelog 2024-10-24 22:45:05 +01:00
José Rebelo e25757846f Add link to background service troubleshoot page 2024-10-22 22:18:17 +01:00
José Rebelo 69530de0c6 Set changelog version code when restoring zip backup 2024-10-19 21:00:53 +01:00
José Rebelo 9267b4fcf3 Mi Band 9: Fix strength training 2024-10-16 23:43:11 +01:00
José Rebelo e6dc262a4d Xiaomi-protobuf: Fix some workout type recognition 2024-10-16 23:40:13 +01:00
José Rebelo e436946bed Sleep charts: Fix empty cells for devices without awake sleep 2024-10-16 23:21:38 +01:00
José Rebelo 2abe7e5b2f Fix weekly and monthly sleep times for devices without awake sleep
The last sleep stage on these is not "awake sleep" and should be
included.
2024-10-16 23:07:41 +01:00
José Rebelo a0d7c8b77b Huawei: Fix battery notifications 2024-10-16 22:54:40 +01:00
José Rebelo f0cce348c4 Xiaomi-protobuf: Fix naps 2024-10-16 22:46:19 +01:00
José Rebelo f9f3e8849b Mi Band 9: Fix walk workout parsing 2024-10-16 19:38:15 +01:00
José Rebelo 8714c8461f Fix unit tests 2024-10-15 19:54:00 +01:00
José Rebelo 75024c8a40 Update changelog 2024-10-14 20:35:45 +01:00
José Rebelo b595a1ad96 Huawei Watch Fit 3: Enable emoji 2024-10-13 22:20:02 +01:00
José Rebelo 10a7550232 Garmin: Map some health snapshot fields 2024-10-13 21:28:37 +01:00
José RebeloandJosé Rebelo 1f4987ab98 Huawei: Enable emoji for HarmonyOS watches 2024-10-13 19:01:14 +00:00
José Rebelo 58a8c91c80 Activity Details: Fix table after odd number of cells 2024-10-13 19:55:09 +01:00
José Rebelo 92fd556c5f Garmin: Map some missing realtime settings icons 2024-10-13 13:52:48 +01:00
José Rebelo d47a08479d Garmin Fenix 6S Sapphire / Venu Sq 2: Initial support 2024-10-13 13:39:43 +01:00
José Rebelo 92004ce4de Fix activity icon after filter reset 2024-10-13 08:59:46 +01:00
José Rebelo 427b7c7557 Activity details: Refactor header 2024-10-12 23:24:14 +01:00
José Rebelo c2668d2e6c Add average line to HR chart 2024-10-12 19:00:26 +01:00
José Rebelo b4426c61be Garmin: Fix unit tests 2024-10-12 16:59:07 +01:00
José Rebelo 6474a6092e GPXExporter: Include speed and cadence 2024-10-12 16:57:02 +01:00
José Rebelo bf7b6e2329 Fix wrong parameter type 2024-10-12 13:40:35 +01:00
José Rebelo 598e737f10 Garmin: Map some missing fields in FitRecord 2024-10-12 13:33:37 +01:00
José Rebelo bd3b7467a4 Garmin/Zepp OS: Display resting HR 2024-10-12 13:21:20 +01:00
José Rebelo fb1d0a92cc Garmin: Add resting heart rate sample provider 2024-10-11 23:51:44 +01:00
José Rebelo b331c53763 Garmin: Parse skin temperature messages 2024-10-11 23:09:40 +01:00
José Rebelo 8c949ff6ab Garmin: Persist respiratory rate 2024-10-11 22:29:55 +01:00
José Rebelo 27a830fd13 Update changelog 2024-10-11 13:23:37 +01:00
José RebeloandHosted Weblate b24c9c13e9 Translated using Weblate (Portuguese)
Currently translated at 66.1% (2150 of 3249 strings)

Translation: Freeyourgadget/Gadgetbridge
Translate-URL: https://hosted.weblate.org/projects/freeyourgadget/gadgetbridge/pt/
2024-10-10 22:14:15 +00:00
José Rebelo 329eb2c62e Garmin Venu Sq: Initial support 2024-10-10 23:14:01 +01:00
José Rebelo 400d2aeaba Garmin Fenix 8: Initial support 2024-10-10 20:47:35 +01:00
José Rebelo fb907da6d5 Activity list: Adjust paddings 2024-10-09 21:26:07 +01:00
José Rebelo cdaf78cbbc Activity list: Adjust padding and colors 2024-10-09 21:19:35 +01:00
José Rebelo d782169a64 Garmin: Fix rxnetworks AGPS header recognition 2024-10-09 19:01:59 +01:00
José Rebelo 94572805e9 Colmi R0x: Check factory reset flags on onReset
This function is also called for a simple reboot.
2024-10-08 18:20:26 +01:00
José Rebelo 19c80947eb Enable scrollbar in activity list 2024-10-07 20:32:57 +01:00
José Rebelo 95b6485965 Add button to share JSON details 2024-10-06 22:24:04 +01:00
José Rebelo 22a6d9b7d9 Refactor activity lists to use a RecyclerView 2024-10-06 22:24:04 +01:00
José Rebelo 32e955abe2 Fix language not being respected in some situations 2024-10-06 22:22:48 +01:00
José Rebelo 9191500fd9 Sort activity kind filter alphabetically 2024-10-06 14:16:26 +01:00
José Rebelo 96314937d0 Add icons for navigation, cardio, strength training, video gaming 2024-10-06 12:05:05 +01:00
José Rebelo b2c88b47d5 Do not consider awake sleep for sleep time 2024-10-05 18:02:13 +01:00
José Rebelo 7de97a49b0 Garmin: Fix over-counting of distance at turn of day 2024-10-05 18:00:57 +01:00
José Rebelo cbd6fe2145 Huawei: Use watch distance and calories
Thanks to Martin.JM for the patch
2024-10-05 17:32:29 +01:00
José Rebelo 9c67a30835 Garmin: Persist distance and calories 2024-10-05 17:29:23 +01:00
José Rebelo c700d49bf0 Allow gadgets to provide distance and calories 2024-10-05 17:29:23 +01:00
José Rebelo 6258ccd4db Garmin: Fetch SKIP_TEMP files 2024-10-05 15:54:41 +01:00
José Rebelo 5272d017ac Show single day in bottom charts label 2024-10-05 14:43:35 +01:00
José Rebelo 67346a06e5 Fix HRV Status days 2024-10-05 14:17:08 +01:00
José Rebelo f6a8d05fd6 Make some average lines more visible 2024-10-05 12:17:30 +01:00
José Rebelo 00d3a9ce18 Fix linter errors 2024-10-04 22:56:39 +01:00
José Rebelo 9ed9abba46 Fix translations after merge from weblate 2024-10-04 22:49:53 +01:00
José Rebelo 09ee27c402 Update changelog 2024-10-04 20:15:01 +01:00
José Rebelo fd3a725b10 Huawei: Format pace values in a table 2024-10-04 20:08:24 +01:00
José Rebelo d34dcb6fc6 Downgrade com.android.tools.build:gradle to v8.7.0
Nightly build fails:

```
2024-10-03 23:18:19,270 INFO: APK file was successfully validated!
2024-10-03 23:18:19,321 CRITICAL: Unknown exception found!
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/androguard/core/bytecodes/apk.py", line 1556, in get_android_resources
    return self.arsc["resources.arsc"]
KeyError: 'resources.arsc'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/fdroid", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/fdroidserver/__main__.py", line 230, in main
    raise e
...
  File "/usr/local/lib/python3.10/dist-packages/androguard/core/bytecodes/axml/__init__.py", line 2181, in __init__
    raise ResParserError("res1 must be zero!")
androguard.core.bytecodes.axml.ResParserError: res1 must be zero!
```

This reverts commit b8bf1200c1.
2024-10-04 20:05:49 +01:00
José Rebelo 84c91021d1 Fix body energy page scroll 2024-10-03 23:29:51 +01:00
José Rebelo b8bf1200c1 Update dependency com.android.tools.build:gradle to v8.7.0 2024-10-03 23:24:46 +01:00
José Rebelo 10da6a27ce Garmin: Map more fit session fields 2024-10-02 22:01:24 +01:00
José RebeloandJosé Rebelo 86888ec52b Fix crash on unknown values 2024-10-01 20:27:59 +00:00
José RebeloandJosé Rebelo c2e2b52297 Re-order HR zones section 2024-10-01 20:27:59 +00:00
José RebeloandJosé Rebelo 3e327e2924 Workout Details: Add tables and progress bars 2024-10-01 20:27:59 +00:00
José RebeloandJosé Rebelo 5192304d29 RuntimeTypeAdapterFactory: Allow null labels 2024-10-01 20:27:59 +00:00
José Rebelo 9d03d0d98e Display weekday on sports activities 2024-10-01 20:50:48 +01:00
José Rebelo f6f196847b Make calendar lookahead configurable 2024-09-30 23:44:24 +01:00
José Rebelo 19f04e1867 Show notification on crash for debug builds 2024-09-29 13:44:40 +01:00
José RebeloandJosé Rebelo d4a451e8c8 CalendarReceiver: Convert to ContentObserver 2024-09-29 11:14:23 +00:00