1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-25 00:30:37 +02: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
public int getBondingStyle() {
return BONDING_STYLE_NONE;
return BONDING_STYLE_REQUIRE_KEY;
}
@Override
public int[] getSupportedDeviceSpecificAuthenticationSettings() {
return new int[]{R.xml.devicesettings_pairingkey};
}
@Override
public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
return new int[]{
R.xml.devicesettings_lock_unlock,
R.xml.devicesettings_pairingkey
R.xml.devicesettings_lock_unlock
};
}
}