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.
Add Distance, startTime and endTime to GpsData.
Fixes non working GB assisted GPS on Huawei Band 8.
TEST: Confirmed that speed and distance is properly shown
while using the cycling (outdoor) activity.
Fixes issue #3990.
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Sleep and Steps charts already have the day/way/month sub-charts that
already use the "Mon, Sep 7" format. This commit attempts to make the
rest of the date formatting more consistent with that format in the
activity list and the base navigation bar at the bottom of all charts.
Closes#2412
Signed-off-by: Linos Giannopoulos <linosgian00@gmail.com>
Currently the user isn't informed about errors when connecting to
the watch and is left with a working BT connection that isn't used at all.
Add toasts when the HiChainRequest fails or times out and disconnect
the phone. Without a successful HiChain established the connection is
useless anyways and it causes the phone to be not discoverable any more.
In addition add a timeout to the HiChainRequest, one longer for the first
pairing, where the user needs to confirm the pairing request on the watch.
The short delay is used for subsequent HiChainRequests.
The watch might not answer HiChainRequests when it was paired with a
different phone, so the added timeout and toast improves user experience
a lot since it's now clear that there was a problem.
Related to issue #4148
Related to issue #4061
Fixes issue #4062
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>