1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-23 05:20:35 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge
José Rebelo 58d4ebf509 Huami: Refactor activity data fetching
Activity data fetching on Huami devices was filled with duplicated code,
and the handleActivityFetchFinish was called from multiple places where
it did not make sense. This made us signal to the band that activity
fetch was finished when it sometimes was not, causing some race
condititions that would make activity fetch fail or get stuck.

This refactor defines a clear "processBufferedData" that is called
upstream, signaling to the fetch operation that we have received all
data and the buffer can be processed. All handling of metadata and ack
messages is also delegated to the upstream class.
2024-02-25 13:10:25 +00:00
..
activities Limit smart alarm interval to 255 2024-02-24 09:56:56 +01:00
adapter Update alarm unused and enabled states 2024-02-24 09:56:56 +01:00
capabilities Nothing CMF Watch Pro: Initial support 2024-01-28 18:46:13 +00:00
contentprovider Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
database Add smart wakeup interval 2024-02-24 09:56:56 +01:00
deviceevents Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
devices Huami: Refactor activity data fetching 2024-02-25 13:10:25 +00:00
entities Fossil/Skagen Hybrids: Use steps instead of calories for activity intensity 2024-02-23 20:54:49 +01:00
export Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
externalevents Add wake lock and wakeup for time sync 2024-02-18 19:12:30 +00:00
impl Revert "Device connection: added basic code for scan-reconnect" 2024-02-12 23:30:32 +01:00
model Add smart wakeup interval 2024-02-24 09:56:56 +01:00
service Huami: Refactor activity data fetching 2024-02-25 13:10:25 +00:00
util Add smart wakeup interval 2024-02-24 09:56:56 +01:00
GBApplication.java TimeChangeReceiver: Ensure the alarm is set 2024-02-18 19:12:30 +00:00
GBEnvironment.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GBException.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
LockHandler.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
Logging.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
LoggingExceptionHandler.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
SleepAlarmWidget.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
Widget.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00