mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Garmin Edge Explore 2: Initial support
This commit is contained in:
+6
-1
@@ -69,9 +69,14 @@ public abstract class GarminBikeComputerCoordinator extends GarminCoordinator {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsFindDevice() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsMusicInfo() {
|
||||
// eg. Edge 840, but not all
|
||||
// eg. Edge 840, Edge Explore 2, but not all
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+5
@@ -21,6 +21,11 @@ public class GarminEdge130PlusCoordinator extends GarminBikeComputerCoordinator
|
||||
return 0; // does not seem to report the battery %
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsFindDevice() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsMusicInfo() {
|
||||
return false;
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package nodomain.freeyourgadget.gadgetbridge.devices.garmin.bike;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||
|
||||
public class GarminEdgeExplore2Coordinator extends GarminBikeComputerCoordinator {
|
||||
@Override
|
||||
protected Pattern getSupportedDeviceName() {
|
||||
return Pattern.compile("^Edge Explore 2$");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_garmin_edge_explore_2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBatteryCount(final GBDevice device) {
|
||||
return 0; // does not seem to report the battery %
|
||||
}
|
||||
}
|
||||
@@ -27,6 +27,7 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||
package nodomain.freeyourgadget.gadgetbridge.model;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.bike.GarminEdgeExplore2Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.huami.zeppos.watches.AmazfitActive2NfcCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.oppo.OppoEncoBuds2Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.polar.PolarH10DeviceCoordinator;
|
||||
@@ -484,6 +485,7 @@ public enum DeviceType {
|
||||
NUTMINI(NutCoordinator.class),
|
||||
VIVOMOVE_HR(GarminVivomoveHrCoordinator.class),
|
||||
GARMIN_EDGE_130_PLUS(GarminEdge130PlusCoordinator.class),
|
||||
GARMIN_EDGE_EXPLORE_2(GarminEdgeExplore2Coordinator.class),
|
||||
GARMIN_ENDURO_3(GarminEnduro3Coordinator.class),
|
||||
GARMIN_EPIX_PRO(GarminEpixProCoordinator.class),
|
||||
GARMIN_FENIX_5(GarminFenix5Coordinator.class),
|
||||
|
||||
@@ -1812,6 +1812,7 @@
|
||||
<string name="devicetype_garmin_venu_3">Garmin Venu 3</string>
|
||||
<string name="devicetype_garmin_venu_3s">Garmin Venu 3S</string>
|
||||
<string name="devicetype_garmin_edge_130_plus">Garmin Edge 130 Plus</string>
|
||||
<string name="devicetype_garmin_edge_explore_2">Garmin Edge Explore 2</string>
|
||||
<string name="devicetype_garmin_enduro_3">Garmin Enduro 3</string>
|
||||
<string name="devicetype_garmin_epix_pro">Garmin Epix Pro</string>
|
||||
<string name="devicetype_garmin_fenix_5">Garmin Fenix 5</string>
|
||||
|
||||
Reference in New Issue
Block a user