1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-21 22:31:16 +02:00

[Huawei] Add Rotate Cycle Info into dynamic service

This commit is contained in:
Damien 'Psolyca' Gaignon 2024-03-23 17:55:45 +01:00
parent 3a22211392
commit 1392f24f4c
No known key found for this signature in database
GPG Key ID: 9E9404E5D9E11843

View File

@ -457,8 +457,6 @@ public class HuaweiSupportProvider {
SharedPreferences.Editor editor = sharedPrefs.edit();
editor.putString(DeviceSettingsPreferenceConst.PREF_ACTIVATE_DISPLAY_ON_LIFT, "p_on");
editor.apply();
// initializeAlarms();
setNavigateOnRotate();
setTrusleep();
}
onSetTime();
@ -628,6 +626,9 @@ public class HuaweiSupportProvider {
if (getHuaweiCoordinator().supportsWearLocation(getDevice())) {
setWearLocation();
}
if (getHuaweiCoordinator().supportsRotateToCycleInfo()) {
setNavigateOnRotate();
}
if (getHuaweiCoordinator().supportsQueryDndLiftWristDisturbType()) {
GetDndLiftWristTypeRequest getDndLiftWristTypeReq = new GetDndLiftWristTypeRequest(this);
getDndLiftWristTypeReq.doPerform();