diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/moyoung/AbstractMoyoungDeviceCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/moyoung/AbstractMoyoungDeviceCoordinator.java index d07ccf115..7cc59abc2 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/moyoung/AbstractMoyoungDeviceCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/moyoung/AbstractMoyoungDeviceCoordinator.java @@ -105,6 +105,11 @@ public abstract class AbstractMoyoungDeviceCoordinator extends AbstractDeviceCoo return true; } + @Override + public boolean supportsSpo2(GBDevice device) { + return true; + } + @Override public SampleProvider getSampleProvider(GBDevice device, DaoSession session) { return new MoyoungActivitySampleProvider(device, session); @@ -185,7 +190,6 @@ public abstract class AbstractMoyoungDeviceCoordinator extends AbstractDeviceCoo @Override public int[] getSupportedDeviceSpecificSettings(GBDevice device) { return new int[]{ - R.xml.devicesettings_personalinfo, //R.xml.devicesettings_steplength, // TODO is this needed? does it work? write-only so hard to tell R.xml.devicesettings_moyoung_device_version, R.xml.devicesettings_moyoung_language, @@ -195,8 +199,9 @@ public abstract class AbstractMoyoungDeviceCoordinator extends AbstractDeviceCoo //R.xml.devicesettings_moyoung_othermessage, // not implemented because this doesn't really do anything on the watch side, only enables/disables sending of "other" notifications in the app (no idea why they store the setting on the watch) R.xml.devicesettings_liftwrist_display, R.xml.devicesettings_moyoung_sedentary_reminder, - R.xml.devicesettings_donotdisturb_no_auto_v2, + R.xml.devicesettings_donotdisturb_no_auto, //R.xml.devicesettings_moyoung_breathinglight, // No idea what this does but it doesn't seem to change anything + R.xml.devicesettings_world_clocks, }; } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/moyoung/MoyoungConstants.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/moyoung/MoyoungConstants.java index bf5ce5891..3cfeaee05 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/moyoung/MoyoungConstants.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/moyoung/MoyoungConstants.java @@ -267,6 +267,8 @@ public class MoyoungConstants { public static final byte CMD_QUERY_BREATHING_LIGHT = -120; // {} -> {value} public static final byte CMD_SET_BREATHING_LIGHT = 120; // {enabled ? 1 : 0} + public static final byte CMD_QUERY_STOCKS = (byte) 0xb9; + public static final byte CMD_DAGPT = (byte) 0xbb; public static final byte TRAINING_TYPE_WALK = 0; public static final byte TRAINING_TYPE_RUN = 1; diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/moyoung/FetchDataOperation.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/moyoung/FetchDataOperation.java index d18c399d5..bf0df61c5 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/moyoung/FetchDataOperation.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/moyoung/FetchDataOperation.java @@ -185,7 +185,7 @@ public class FetchDataOperation extends AbstractBTLEOperation i) diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 2f28decd3..71889623f 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -2638,12 +2638,26 @@ Watch face 1 Watch face 2 Watch face 3 + Watch face 4 + Watch face 5 + Watch face 6 + Watch face 7 + Watch face 8 + Watch face 9 + Watch face 10 1 2 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 diff --git a/app/src/main/res/xml/devicesettings_donotdisturb_no_auto_v2.xml b/app/src/main/res/xml/devicesettings_donotdisturb_no_auto_v2.xml deleted file mode 100644 index e6b2a4204..000000000 --- a/app/src/main/res/xml/devicesettings_donotdisturb_no_auto_v2.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/app/src/main/res/xml/devicesettings_moyoung_sedentary_reminder.xml b/app/src/main/res/xml/devicesettings_moyoung_sedentary_reminder.xml index 1d61878f2..717c36640 100644 --- a/app/src/main/res/xml/devicesettings_moyoung_sedentary_reminder.xml +++ b/app/src/main/res/xml/devicesettings_moyoung_sedentary_reminder.xml @@ -7,10 +7,7 @@ android:persistent="false" android:title="@string/pref_sedentary_reminder"> - - - - - - - - - - -