mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-01 03:55:47 +02:00
Vivitar HR & BP Monitor Activity Tracker: Initial support
This commit is contained in:
parent
0aec5e0ad5
commit
d66f0cdd22
@ -0,0 +1,61 @@
|
||||
/* Copyright (C) 2024 José Rebelo
|
||||
|
||||
This file is part of Gadgetbridge.
|
||||
|
||||
Gadgetbridge is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Gadgetbridge is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||
package nodomain.freeyourgadget.gadgetbridge.devices.lefun;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDeviceCandidate;
|
||||
|
||||
public class VivitarHrBpMonitorActivityTrackerCoordinator extends LefunDeviceCoordinator {
|
||||
public boolean supports(GBDeviceCandidate candidate) {
|
||||
// Since the Lefun coordinator overrides supports, we also need to
|
||||
return "IMP-2027".equals(candidate.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
|
||||
return new int[]{
|
||||
R.xml.devicesettings_liftwrist_display_noshed,
|
||||
R.xml.devicesettings_timeformat,
|
||||
// R.xml.devicesettings_antilost, not supported
|
||||
R.xml.devicesettings_inactivity,
|
||||
R.xml.devicesettings_hydration_reminder,
|
||||
R.xml.devicesettings_lefun_interface_language,
|
||||
R.xml.devicesettings_transliteration
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsRealtimeData() {
|
||||
return false; // not supported
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_vivitar_hr_bp_monitor_activity_tracker;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDefaultIconResource() {
|
||||
return R.drawable.ic_device_h30_h10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDisabledIconResource() {
|
||||
return R.drawable.ic_device_h30_h10_disabled;
|
||||
}
|
||||
}
|
@ -173,6 +173,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.jyou.TeclastH30.TeclastH30Co
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.jyou.y5.Y5Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.lefun.BohemicSmartBraceletDeviceCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.lefun.LefunDeviceCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.lefun.VivitarHrBpMonitorActivityTrackerCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.lenovo.watchxplus.WatchXPlusDeviceCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.liveview.LiveviewCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.makibeshr3.MakibesHR3Coordinator;
|
||||
@ -357,6 +358,7 @@ public enum DeviceType {
|
||||
MIJIA_LYWSD03(MijiaLywsd03Coordinator.class),
|
||||
MIJIA_MHO_C303(MijiaMhoC303Coordinator.class),
|
||||
LEFUN(LefunDeviceCoordinator.class),
|
||||
VIVITAR_HR_BP_MONITOR_ACTIVITY_TRACKER(VivitarHrBpMonitorActivityTrackerCoordinator.class),
|
||||
BOHEMIC_SMART_BRACELET(BohemicSmartBraceletDeviceCoordinator.class),
|
||||
SMAQ2OSS(SMAQ2OSSCoordinator.class),
|
||||
FITPRO(FitProDeviceCoordinator.class),
|
||||
|
@ -1640,6 +1640,7 @@
|
||||
<string name="devicetype_sg2">Lemfo SG2</string>
|
||||
<string name="devicetype_lefun">Lefun</string>
|
||||
<string name="devicetype_bohemic_smart_bracelet">Bohemic Smart Bracelet</string>
|
||||
<string name="devicetype_vivitar_hr_bp_monitor_activity_tracker">Vivitar HR & BP Monitor Activity Tracker</string>
|
||||
<string name="devicetype_hama_fit6900">Hama Fit6900</string>
|
||||
<!-- Menus on the smart device -->
|
||||
<string name="menuitem_nothing">Nothing</string>
|
||||
|
Loading…
Reference in New Issue
Block a user