Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle
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
..
actions Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
profiles Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractBTLEDeviceSupport.java Xiaomi: change BLE max chunk size with MTU changes 2024-01-17 20:16:38 +00:00
AbstractBTLEOperation.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractGattCallback.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
AbstractTransaction.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
BleNamesResolver.java Xiaomi: add potential service and characteristic UUIDs 2024-01-17 20:16:38 +00:00
BLETypeConversions.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
BtLEAction.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
BTLEOperation.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
BtLEQueue.java BtLEQueue: update device state on main looper 2024-01-21 01:56:34 +01:00
BtLEServerAction.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GattCallback.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GattCharacteristic.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GattDescriptor.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GattListenerAction.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GattServerCallback.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GattService.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
ServerTransaction.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
ServerTransactionBuilder.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
Transaction.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
TransactionBuilder.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00