mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Adding R1 device to gloryfit watches
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
package nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.GloryFitCoordinator
|
||||
import java.util.regex.Pattern
|
||||
|
||||
class R1Coordinator : GloryFitCoordinator() {
|
||||
override fun getManufacturer(): String {
|
||||
return "Gloryfit"
|
||||
}
|
||||
|
||||
override fun getSupportedDeviceName(): Pattern? {
|
||||
return Pattern.compile("^R1\\(ID-[0-9A-F]{4}\\)$")
|
||||
}
|
||||
|
||||
override fun getDeviceNameResource(): Int {
|
||||
return R.string.devicetype_r1
|
||||
}
|
||||
}
|
||||
@@ -169,6 +169,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.DotnP66DCoo
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.HaylouWatch2ProCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.ImikiFrame2Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.OukitelBT103Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.R1Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.S52Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gloryfit.watches.Y66Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.gree.GreeAcCoordinator;
|
||||
@@ -789,6 +790,7 @@ public enum DeviceType {
|
||||
OPPO_ENCO_BUDS2(OppoEncoBuds2Coordinator.class),
|
||||
OUKITEL_BT103(OukitelBT103Coordinator.class),
|
||||
DOTN_P66D(DotnP66DCoordinator.class),
|
||||
R1(R1Coordinator.class),
|
||||
IMIKI_FRAME_2(ImikiFrame2Coordinator.class),
|
||||
HAYLOU_WATCH_2_PRO(HaylouWatch2ProCoordinator.class),
|
||||
S52(S52Coordinator.class),
|
||||
|
||||
@@ -4338,6 +4338,7 @@
|
||||
<string name="devicetype_oukitel_bt103" translatable="false">Oukitel BT103</string>
|
||||
<string name="devicetype_y66" translatable="false">Y66</string>
|
||||
<string name="devicetype_s52" translatable="false">S52</string>
|
||||
<string name="devicetype_r1" translatable="false">R1</string>
|
||||
<string name="devicetype_haylou_watch_2_pro" translatable="false">Haylou Watch 2 Pro</string>
|
||||
<string name="devicetype_dotn_p66d" translatable="false">Dotn P66D</string>
|
||||
<string name="pref_title_time_interval">Time interval</string>
|
||||
|
||||
Reference in New Issue
Block a user