1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

[Huawei] Auto detect GPS data support

This commit is contained in:
Martin.JM 2024-04-04 20:01:44 +02:00
parent 88746d5706
commit e4cac887cc

View File

@ -202,6 +202,7 @@ public class HuaweiCoordinator {
notifications.add(R.xml.devicesettings_donotdisturb_allday_liftwirst_notwear);
// Workout
if (supportsSendingGps())
deviceSpecificSettings.addRootScreen(DeviceSpecificSettingsScreen.WORKOUT, R.xml.devicesettings_workout_send_gps_to_band);
// Other
@ -411,6 +412,10 @@ public class HuaweiCoordinator {
return supportsCommandForService(0x17, 0x17);
}
public boolean supportsSendingGps() {
return supportsCommandForService(0x18, 0x02);
}
public boolean supportsAccount() {
return supportsCommandForService(0x1A, 0x01);
}