mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-09 03:37:03 +01:00
CMF Buds Pro 2: Initial support
This commit is contained in:
parent
c72420281a
commit
0aec5e0ad5
@ -0,0 +1,43 @@
|
||||
/* Copyright (C) 2024 José Rebelo
|
||||
|
||||
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.nothing;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.R;
|
||||
|
||||
public class CmfBudsPro2Coordinator extends AbstractEarCoordinator {
|
||||
@Override
|
||||
protected Pattern getSupportedDeviceName() {
|
||||
return Pattern.compile("^CMF Buds Pro 2$");
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeviceNameResource() {
|
||||
return R.string.devicetype_nothing_cmf_buds_pro_2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean incrementCounter() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsLightAncAndTransparency() {
|
||||
return true;
|
||||
}
|
||||
}
|
@ -183,6 +183,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.mijia_lywsd.MijiaMhoC303Coor
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.miscale2.MiScale2DeviceCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.moondrop.MoondropSpaceTravelCoordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.no1f1.No1F1Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.CmfBudsPro2Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.Ear1Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.Ear2Coordinator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.EarStickCoordinator;
|
||||
@ -404,6 +405,7 @@ public enum DeviceType {
|
||||
NOTHING_EAR1(Ear1Coordinator.class),
|
||||
NOTHING_EAR2(Ear2Coordinator.class),
|
||||
NOTHING_EAR_STICK(EarStickCoordinator.class),
|
||||
NOTHING_CMF_BUDS_PRO_2(CmfBudsPro2Coordinator.class),
|
||||
NOTHING_CMF_WATCH_PRO(CmfWatchProCoordinator.class),
|
||||
NOTHING_CMF_WATCH_PRO_2(CmfWatchPro2Coordinator.class),
|
||||
GALAXY_BUDS_PRO(GalaxyBudsProDeviceCoordinator.class),
|
||||
|
@ -2190,6 +2190,7 @@
|
||||
<string name="devicetype_nothingear1">Nothing Ear (1)</string>
|
||||
<string name="devicetype_nothingear2">Nothing Ear (2)</string>
|
||||
<string name="devicetype_nothingearstick">Nothing Ear (Stick)</string>
|
||||
<string name="devicetype_nothing_cmf_buds_pro_2">CMF Buds Pro 2</string>
|
||||
<string name="devicetype_nothing_cmf_watch_pro">CMF Watch Pro</string>
|
||||
<string name="devicetype_nothing_cmf_watch_pro_2">CMF Watch Pro 2</string>
|
||||
<string name="devicetype_galaxybuds">Galaxy Buds</string>
|
||||
|
Loading…
Reference in New Issue
Block a user