mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 10:35:50 +01:00
huawei: Add non pro version of Watch 4
* it was missing in current watch4pro coordinator
This commit is contained in:
parent
ff1d0293fd
commit
820a5b9800
@ -77,6 +77,7 @@ public final class HuaweiConstants {
|
||||
public static final String HU_WATCHFIT2_NAME = "huawei watch fit 2-";
|
||||
public static final String HU_WATCHFIT3_NAME = "huawei watch fit 3-";
|
||||
public static final String HU_WATCHULTIMATE_NAME = "huawei watch ultimate-";
|
||||
public static final String HU_WATCH4_NAME = "huawei watch 4-";
|
||||
public static final String HU_WATCH4PRO_NAME = "huawei watch 4 pro-";
|
||||
|
||||
public static final String PREF_HUAWEI_ADDRESS = "huawei_address";
|
||||
|
@ -36,7 +36,7 @@ public class HuaweiWatch4ProCoordinator extends HuaweiBRCoordinator {
|
||||
|
||||
@Override
|
||||
protected Pattern getSupportedDeviceName() {
|
||||
return Pattern.compile("(" + HuaweiConstants.HU_WATCH4PRO_NAME + ").*", Pattern.CASE_INSENSITIVE);
|
||||
return Pattern.compile("(" + HuaweiConstants.HU_WATCH4_NAME + "|" + HuaweiConstants.HU_WATCH4PRO_NAME + ").*", Pattern.CASE_INSENSITIVE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1840,7 +1840,7 @@
|
||||
<string name="devicetype_huawei_watchfit3">Huawei Watch Fit 3</string>
|
||||
<string name="devicetype_huawei_watchultimate">Huawei Watch Ultimate</string>
|
||||
<string name="devicetype_huawei_watch3">Huawei Watch 3 (Pro)</string>
|
||||
<string name="devicetype_huawei_watch4pro">Huawei Watch 4 Pro</string>
|
||||
<string name="devicetype_huawei_watch4pro">Huawei Watch 4 (Pro)</string>
|
||||
<string name="devicetype_femometer_vinca2">Femometer Vinca II</string>
|
||||
<string name="devicetype_xiaomi_watch_lite">Xiaomi Watch Lite</string>
|
||||
<string name="devicetype_redmiwatch3active">Redmi Watch 3 Active</string>
|
||||
|
Loading…
Reference in New Issue
Block a user