1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-20 20:10:15 +02:00
Gadgetbridge/app/src
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
..
banglejs Bump main targetSdkVersion to 31 2023-07-04 09:59:03 +01:00
main BtLEQueue: update device state on main looper 2024-01-21 01:56:34 +01:00
nightly/res Add Neon version of logo as Nightly app icon 2022-08-20 19:56:24 +02:00
nopebble/res Add Neon version of logo as Nightly app icon 2022-08-20 19:56:24 +02:00
test Update license headers 2024-01-10 18:25:20 +00:00