mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Colmi V76: Initial support
This commit is contained in:
committed by
José Rebelo
parent
55429a8f3a
commit
22daa9c52b
+73
@@ -0,0 +1,73 @@
|
||||
/* Copyright (C) 2025 Arjan Schrijver
|
||||
|
||||
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.moyoung;
|
||||
|
||||
import androidx.annotation.DrawableRes;
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||
|
||||
public class ColmiV76Coordinator extends AbstractMoyoungDeviceCoordinator {
|
||||
@Override
|
||||
protected Pattern getSupportedDeviceName() {
|
||||
return Pattern.compile("^V76$");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_colmi_v76;
|
||||
}
|
||||
|
||||
@Override
|
||||
@DrawableRes
|
||||
public int getDefaultIconResource() {
|
||||
return R.drawable.ic_device_miwatch;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getManufacturer() {
|
||||
return "Colmi";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMtu() {
|
||||
return 508;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAlarmSlotCount(GBDevice device) {
|
||||
return 8;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWorldClocksSlotCount() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWorldClocksLabelLength() {
|
||||
return 30;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsRemSleep(@NonNull GBDevice device) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -283,6 +283,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ColmiI28UltraCoordin
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ColmiP76Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ColmiP80Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ColmiV72Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ColmiV76Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ColmiV89Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.FireBolttTalkCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.KT80Coordinator;
|
||||
@@ -753,6 +754,7 @@ public enum DeviceType {
|
||||
COLMI_P76(ColmiP76Coordinator.class),
|
||||
COLMI_P80(ColmiP80Coordinator.class),
|
||||
COLMI_V72(ColmiV72Coordinator.class),
|
||||
COLMI_V76(ColmiV76Coordinator.class),
|
||||
COLMI_V89(ColmiV89Coordinator.class),
|
||||
BLACKVIEW_R60(BlackviewR60Coordinator.class),
|
||||
MISIRUN_C17(MisirunC17Coordinator.class),
|
||||
|
||||
@@ -2093,6 +2093,7 @@
|
||||
<string name="devicetype_colmi_i28_ultra" translatable="false">Colmi i28 Ultra</string>
|
||||
<string name="devicetype_colmi_p76" translatable="false">Colmi P76</string>
|
||||
<string name="devicetype_colmi_v72" translatable="false">Colmi V72</string>
|
||||
<string name="devicetype_colmi_v76" translatable="false">Colmi V76</string>
|
||||
<string name="devicetype_colmi_v89" translatable="false">Colmi V89</string>
|
||||
<string name="devicetype_colmi_p80" translatable="false">Colmi P80</string>
|
||||
<string name="devicetype_blackview_r60" translatable="false">Blackview R60</string>
|
||||
|
||||
Reference in New Issue
Block a user