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:
parent
88746d5706
commit
e4cac887cc
@ -202,7 +202,8 @@ public class HuaweiCoordinator {
|
||||
notifications.add(R.xml.devicesettings_donotdisturb_allday_liftwirst_notwear);
|
||||
|
||||
// Workout
|
||||
deviceSpecificSettings.addRootScreen(DeviceSpecificSettingsScreen.WORKOUT, R.xml.devicesettings_workout_send_gps_to_band);
|
||||
if (supportsSendingGps())
|
||||
deviceSpecificSettings.addRootScreen(DeviceSpecificSettingsScreen.WORKOUT, R.xml.devicesettings_workout_send_gps_to_band);
|
||||
|
||||
// Other
|
||||
deviceSpecificSettings.addRootScreen(R.xml.devicesettings_find_phone);
|
||||
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user