1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-03 17:02:13 +01:00

SoFlow SO6: fix settings

This commit is contained in:
Andreas Shimokawa 2022-11-08 19:01:45 +01:00
parent 27406e0881
commit 5db9d36d1a

View File

@ -136,14 +136,18 @@ public class SoFlowCoordinator extends AbstractBLEDeviceCoordinator {
@Override @Override
public int getBondingStyle() { public int getBondingStyle() {
return BONDING_STYLE_NONE; return BONDING_STYLE_REQUIRE_KEY;
}
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{R.xml.devicesettings_pairingkey};
} }
@Override @Override
public int[] getSupportedDeviceSpecificSettings(GBDevice device) { public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
return new int[]{ return new int[]{
R.xml.devicesettings_lock_unlock, R.xml.devicesettings_lock_unlock
R.xml.devicesettings_pairingkey
}; };
} }
} }