Moved to AbstractDeviceSupport so each device support class can override them if required. This change helps to keep the code base clean by not requiring every (Device)Support class to implement these methods even when they don't need them.
fix indent change
add only new functions from master branch
correct issue with reformated code
Merge branch 'master' into HPlus_improve_notifications
update code formatting with Android Studio
remove bad update of .gitignore
HPlusSupport rebuild indexation
remove unecessary change for pull request
Improve HPlus support
- update unicode support
- update notification function
- add first weather notification
Merge pull request 'update master from upstream repository' (#4) from Freeyourgadget/Gadgetbridge:master into master
Reviewed-on: https://codeberg.org/Memiks/Gadgetbridge/pulls/4
Merge pull request 'update master from upstream repository' (#2) from Freeyourgadget/Gadgetbridge:master into master
Reviewed-on: https://codeberg.org/Memiks/Gadgetbridge/pulls/2
use my own android sdk image
Sign apk
add signed apk
remove .drone.yml from git
add drone.io compilation
Merge pull request 'update master from upstream repository' (#1) from Freeyourgadget/Gadgetbridge:master into master
Reviewed-on: https://codeberg.org/Memiks/Gadgetbridge/pulls/1
Co-authored-by: Andreas Shimokawa <shimokawa@fsfe.org>
Co-authored-by: Memiks <contact@memiks.fr>
Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2012
The issue here is the following:
- we used intents in the generic BleProfile classes to notify about the results of e.g. certain read requests
- we used to send these results asynchronously via LocalBroadcastManager.sendBroadcast(), which always used the main thread for sending
- however, we noticed that reconnecting to devices sometimes failed because the results arrived too late and the next action in the BLE queue lacked the necessary information
- the fix was to use LocalBroadcastManager.setBroadcastSync(), so that the results arrive in time
- this unfortunately meant that they were not sent in the main thread anymore, and especially, this would send all pending intents that were previously queued via sendBroadcast() also in the "wrong" thread (in order to keep the order of events)
The fix is to use a custom IntentListener callback interface for synchronous notifications of ble profile results
*without* also causing other, previously queued intents to be sent.
Fixes#1218
This removes misuse of testNewFunctionality() and support fetching GPS data and debug logs
Fetching debug logs (Amazfit Bip/Cor) is now accessible in the debug activity
Fetching GPS data can be done by swiping in the list activity.
TODO: actually refresh list when fetching data is done :P
Also fix some android studio warnings on the go...