1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-09 03:37:03 +01:00

huawei: Add non pro version of Watch 4

* it was missing in current watch4pro coordinator
This commit is contained in:
Vitaliy Tomin 2024-09-23 16:20:38 +08:00 committed by José Rebelo
parent ff1d0293fd
commit 820a5b9800
3 changed files with 3 additions and 2 deletions

View File

@ -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";

View File

@ -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

View File

@ -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>