mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Blackview R60: Initial support
This commit is contained in:
+77
@@ -0,0 +1,77 @@
|
||||
/* 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 java.util.regex.Pattern;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
|
||||
|
||||
public class BlackviewR60Coordinator extends AbstractMoyoungDeviceCoordinator {
|
||||
@Override
|
||||
protected Pattern getSupportedDeviceName() {
|
||||
return Pattern.compile("^R60$");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_blackview_r60;
|
||||
}
|
||||
|
||||
@Override
|
||||
@DrawableRes
|
||||
public int getDefaultIconResource() {
|
||||
return R.drawable.ic_device_amazfit_bip;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getManufacturer() {
|
||||
return "Blackview";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMtu() {
|
||||
return 508;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getAlarmSlotCount(final GBDevice device) {
|
||||
return 8;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWorldClocksSlotCount() {
|
||||
return 6;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getWorldClocksLabelLength() {
|
||||
return 30;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsRemSleep() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsStressMeasurement() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -277,6 +277,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.miscale.MiCompositionScaleCo
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.miscale.MiSmartScaleCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moondrop.MoondropSpaceTravelCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.AdvanWatchSE1AICoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.BlackviewR60Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.C20Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ColmiI28UltraCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ColmiP76Coordinator;
|
||||
@@ -749,6 +750,7 @@ public enum DeviceType {
|
||||
COLMI_P76(ColmiP76Coordinator.class),
|
||||
COLMI_V72(ColmiV72Coordinator.class),
|
||||
COLMI_V89(ColmiV89Coordinator.class),
|
||||
BLACKVIEW_R60(BlackviewR60Coordinator.class),
|
||||
MISIRUN_C17(MisirunC17Coordinator.class),
|
||||
C20(C20Coordinator.class),
|
||||
KT80(KT80Coordinator.class),
|
||||
|
||||
@@ -2089,6 +2089,7 @@
|
||||
<string name="devicetype_colmi_p76" translatable="false">Colmi P76</string>
|
||||
<string name="devicetype_colmi_v72" translatable="false">Colmi V72</string>
|
||||
<string name="devicetype_colmi_v89" translatable="false">Colmi V89</string>
|
||||
<string name="devicetype_blackview_r60" translatable="false">Blackview R60</string>
|
||||
<string name="devicetype_misirun_c17" translatable="false">Misirun C17</string>
|
||||
<string name="devicetype_c20" translatable="false">C20</string>
|
||||
<string name="devicetype_kt80" translatable="false">KT80</string>
|
||||
|
||||
Reference in New Issue
Block a user