Initial support for Garmin Forerunner 920

(Ich just worked after a87ddbb66a)
This commit is contained in:
Andreas Shimokawa
2026-01-01 12:47:21 +01:00
parent 28a78a0bde
commit 25cb04c63f
4 changed files with 39 additions and 2 deletions
@@ -0,0 +1,34 @@
/* Copyright (C) 2026 Andreas Shimokawa
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.garmin.watches.forerunner;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.GarminWatchCoordinator;
public class GarminForerunner920Coordinator extends GarminWatchCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("^Forerunner 920$");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_garmin_forerunner_920;
}
}
@@ -119,6 +119,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.Ga
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner645MusicCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner735XTCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner745Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner920Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner945Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner955Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.garmin.watches.forerunner.GarminForerunner965Coordinator;
@@ -652,6 +653,7 @@ public enum DeviceType {
GARMIN_FORERUNNER_645_MUSIC(GarminForerunner645MusicCoordinator.class),
GARMIN_FORERUNNER_735XT(GarminForerunner735XTCoordinator.class),
GARMIN_FORERUNNER_745(GarminForerunner745Coordinator.class),
GARMIN_FORERUNNER_920(GarminForerunner920Coordinator.class),
GARMIN_FORERUNNER_945(GarminForerunner945Coordinator.class),
GARMIN_FORERUNNER_955(GarminForerunner955Coordinator.class),
GARMIN_FORERUNNER_965(GarminForerunner965Coordinator.class),
+1
View File
@@ -1973,6 +1973,7 @@
<string name="devicetype_garmin_forerunner_645_music" translatable="false">Garmin Forerunner 645 Music</string>
<string name="devicetype_garmin_forerunner_735xt" translatable="false">Garmin Forerunner 735XT</string>
<string name="devicetype_garmin_forerunner_745" translatable="false">Garmin Forerunner 745</string>
<string name="devicetype_garmin_forerunner_920" translatable="false">Garmin Forerunner 920</string>
<string name="devicetype_garmin_forerunner_945" translatable="false">Garmin Forerunner 945</string>
<string name="devicetype_garmin_forerunner_955" translatable="false">Garmin Forerunner 955</string>
<string name="devicetype_garmin_forerunner_965" translatable="false">Garmin Forerunner 965</string>