1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 20:36:51 +01:00

Fossil: move device specific icon setting to application specific settings menu

This commit is contained in:
vanous 2022-07-05 23:06:16 +02:00
parent fe73e9fec1
commit 0709b20043

View File

@ -257,7 +257,6 @@ public class QHybridCoordinator extends AbstractBLEDeviceCoordinator {
R.xml.devicesettings_fossilhybridhr,
R.xml.devicesettings_autoremove_notifications,
R.xml.devicesettings_canned_dismisscall_16,
R.xml.devicesettings_custom_deviceicon,
R.xml.devicesettings_transliteration
};
}
@ -266,11 +265,9 @@ public class QHybridCoordinator extends AbstractBLEDeviceCoordinator {
R.xml.devicesettings_fossilhybridhr,
R.xml.devicesettings_autoremove_notifications,
R.xml.devicesettings_canned_dismisscall_16,
R.xml.devicesettings_custom_deviceicon
};
}
return new int[]{
R.xml.devicesettings_custom_deviceicon
};
}
@ -281,6 +278,13 @@ public class QHybridCoordinator extends AbstractBLEDeviceCoordinator {
};
}
@Override
public int[] getSupportedDeviceSpecificApplicationSettings() {
return new int[]{
R.xml.devicesettings_custom_deviceicon,
};
}
private boolean isHybridHR() {
List<GBDevice> devices = GBApplication.app().getDeviceManager().getSelectedDevices();
for(GBDevice device : devices){