Fossil/Skagen Hybrids: Fix NPE during connection setup

This commit is contained in:
Arjan Schrijver
2025-06-23 23:07:05 +02:00
parent 9d4dca5d5b
commit c3f0a029cd
@@ -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