mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Garmin eTrex SE
This commit is contained in:
+1
-1
@@ -264,7 +264,7 @@ public class ControlCenterv2 extends AppCompatActivity
|
||||
// Hide 'refreshing' animation immediately if no health devices are connected
|
||||
List<GBDevice> devices1 = GBApplication.app().getDeviceManager().getDevices();
|
||||
for (GBDevice dev : devices1) {
|
||||
if (dev.getDeviceCoordinator().supportsActivityTracking() && dev.isInitialized()) {
|
||||
if (dev.getDeviceCoordinator().supportsActivityDataFetching() && dev.isInitialized()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
package nodomain.freeyourgadget.gadgetbridge.devices.garmin.gps;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.GarminCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||
|
||||
public class GarminETrexSeCoordinator extends GarminCoordinator {
|
||||
@Override
|
||||
public boolean supportsActivityDataFetching() {
|
||||
// for gps tracks
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsActivityTracks() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsWeather() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBatteryCount(final GBDevice device) {
|
||||
// does not seem to report the battery %
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Pattern getSupportedDeviceName() {
|
||||
return Pattern.compile("^eTrex SE$");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_garmin_etrex_se;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -60,6 +60,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsLiveDe
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.galaxy_buds.GalaxyBudsProDeviceCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.bike.GarminEdge130PlusCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.bike.GarminEdgeExplore2Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.gps.GarminETrexSeCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.descent.GarminDescentMk3Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.enduro.GarminEnduro3Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.epix.GarminEpixProCoordinator;
|
||||
@@ -533,6 +534,7 @@ public enum DeviceType {
|
||||
VIVOMOVE_HR(GarminVivomoveHrCoordinator.class),
|
||||
GARMIN_EDGE_130_PLUS(GarminEdge130PlusCoordinator.class),
|
||||
GARMIN_EDGE_EXPLORE_2(GarminEdgeExplore2Coordinator.class),
|
||||
GARMIN_ETREX_SE(GarminETrexSeCoordinator.class),
|
||||
GARMIN_ENDURO_3(GarminEnduro3Coordinator.class),
|
||||
GARMIN_EPIX_PRO(GarminEpixProCoordinator.class),
|
||||
GARMIN_DESCENT_MK3(GarminDescentMk3Coordinator.class),
|
||||
|
||||
@@ -1862,6 +1862,7 @@
|
||||
<string name="devicetype_garmin_venu_x1">Garmin Venu X1</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_etrex_se">Garmin eTrex SE</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