Scannable: Fix device settings

This commit is contained in:
José Rebelo 2024-03-28 21:58:30 +00:00
parent 8cf87a418b
commit 9678188395

View File

@ -9,6 +9,7 @@ import nodomain.freeyourgadget.gadgetbridge.entities.DaoSession;
import nodomain.freeyourgadget.gadgetbridge.entities.Device; import nodomain.freeyourgadget.gadgetbridge.entities.Device;
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice; import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport; import nodomain.freeyourgadget.gadgetbridge.service.DeviceSupport;
import nodomain.freeyourgadget.gadgetbridge.service.devices.unknown.UnknownDeviceSupport;
public class ScannableDeviceCoordinator extends AbstractBLEDeviceCoordinator { public class ScannableDeviceCoordinator extends AbstractBLEDeviceCoordinator {
@Override @Override
@ -17,7 +18,7 @@ public class ScannableDeviceCoordinator extends AbstractBLEDeviceCoordinator {
} }
@Override @Override
public int[] getSupportedDeviceSpecificApplicationSettings() { public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
return new int[]{ return new int[]{
R.xml.devicesettings_scannable R.xml.devicesettings_scannable
}; };
@ -36,7 +37,7 @@ public class ScannableDeviceCoordinator extends AbstractBLEDeviceCoordinator {
@NonNull @NonNull
@Override @Override
public Class<? extends DeviceSupport> getDeviceSupportClass() { public Class<? extends DeviceSupport> getDeviceSupportClass() {
return null; return UnknownDeviceSupport.class;
} }
@Override @Override