1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-02 17:56:35 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge
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
..
activities Add header to device-specific activity data settings 2024-01-17 20:16:38 +00:00
adapter Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
capabilities Redmi Smart Band Pro: Fix password digits 2024-01-16 20:52:10 +00:00
contentprovider Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
database Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
deviceevents Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
devices Xiaomi: Fetch manual samples 2024-01-18 21:06:40 +00:00
entities Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
export Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
externalevents Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
impl Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
model Xiaomi Watch S3: Experimental support 2024-01-17 20:29:06 +00:00
service BtLEQueue: update device state on main looper 2024-01-21 01:56:34 +01:00
util Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01:00
GBApplication.java Update license headers and CONTRIBUTORS file 2024-01-10 19:01:48 +01: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