mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-24 17:45:50 +01:00
Roidmi 3: Add support for Mojietu 3 rebrand
This commit is contained in:
parent
c23810f54c
commit
5dfcaa65ea
@ -77,7 +77,7 @@ vendor's servers.
|
||||
- Pebble
|
||||
- [Pebble, Steel, Time, Time Steel, Time Round, 2](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Pebble)
|
||||
- PineTime (InfiniTime Firmware)
|
||||
- Roidmi, Roidmi 3 (Bluetooth FM Transmitters)
|
||||
- Roidmi, Roidmi 3, Mojietu 3 (Bluetooth FM Transmitters)
|
||||
- [SMA](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/SMA) Q2 (SMA-Q2-OSS Firmware)
|
||||
- Sony WH-1000XM3
|
||||
- Teclast H10, H30
|
||||
|
@ -34,9 +34,13 @@ public class Roidmi3Coordinator extends RoidmiCoordinator {
|
||||
public DeviceType getSupportedType(GBDeviceCandidate candidate) {
|
||||
try {
|
||||
BluetoothDevice device = candidate.getDevice();
|
||||
String name = device.getName();
|
||||
final String name = device.getName();
|
||||
|
||||
if (name != null && name.contains("Roidmi Music Blue C")) {
|
||||
if (name == null) {
|
||||
return DeviceType.UNKNOWN;
|
||||
}
|
||||
|
||||
if (name.contains("Roidmi Music Blue C") || name.contains("Mojietu Music Blue C")) {
|
||||
return DeviceType.ROIDMI3;
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user