1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-21 22:31:16 +02:00
Gadgetbridge/app/src/main
MrYoranimo 8a7de15841 BtLEQueue: update device state on main looper
If the device connection state is updated from two threads simultaneously
(as in, from the main looper and from the thread that handles
BluetoothDevice.connectGatt), a second update may get overridden by the
first update if the broadcasts are handled out-of-order by the
LocalBroadcastManager.

By updating the device state through a handler on the main looper, the
broadcasts are sent in order as they are processed from the looper's
queue.

This may be a potential solve for issue #3524.
2024-01-21 01:56:34 +01:00
..
aidl OsmAnd: Replace IOsmAndAidlInterface unneeded functions 2023-05-21 22:50:52 +02:00
assets Fossil/Skagen Hybrids: Update navigationApp to 1.1 2023-12-23 22:05:51 +01:00
java BtLEQueue: update device state on main looper 2024-01-21 01:56:34 +01:00
proto Xiaomi: fix logic for ability to select widget workout type 2024-01-17 20:16:38 +00:00
res Fix material design switch on sleep mode preferences 2024-01-18 18:12:27 +00:00
AndroidManifest.xml Xiaomi: Manage widgets 2023-12-11 22:00:16 +00:00
lint.xml Lint: Ignore missing and extra translations 2023-10-08 21:46:37 +01:00
project.properties