mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Fossil/Skagen Hybrids: Fix NPE during connection setup
This commit is contained in:
+2
-1
@@ -665,7 +665,8 @@ public class QHybridSupport extends QHybridBaseSupport {
|
||||
@Override
|
||||
public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
|
||||
super.onConnectionStateChange(gatt, status, newState);
|
||||
watchAdapter.onConnectionStateChange(gatt, status, newState);
|
||||
if (watchAdapter != null)
|
||||
watchAdapter.onConnectionStateChange(gatt, status, newState);
|
||||
}
|
||||
|
||||
//TODO toggle "Notifications when screen on" options on this check
|
||||
|
||||
Reference in New Issue
Block a user