mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 14:32:54 +01:00
Amazfit Bip U Pro: Allow setting more languages, whitelist FW 1.0.2.92
This commit is contained in:
parent
8a3fc19285
commit
1341501ac4
@ -105,6 +105,33 @@ public class AmazfitBipUProCoordinator extends HuamiCoordinator {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String[] getSupportedLanguageSettings(GBDevice device) {
|
||||||
|
return new String[]{
|
||||||
|
"auto",
|
||||||
|
"cs_CZ",
|
||||||
|
"de_DE",
|
||||||
|
"el_GR",
|
||||||
|
"en_US",
|
||||||
|
"es_ES",
|
||||||
|
"fr_FR",
|
||||||
|
"id_ID",
|
||||||
|
"it_IT",
|
||||||
|
"ja_JP",
|
||||||
|
"ko_KO",
|
||||||
|
"nl_NL",
|
||||||
|
"pl_PL",
|
||||||
|
"pt_BR",
|
||||||
|
"ru_RU",
|
||||||
|
"th_TH",
|
||||||
|
"tr_TR",
|
||||||
|
"uk_UA",
|
||||||
|
"vi_VN",
|
||||||
|
"zh_CH",
|
||||||
|
"zh_TW",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getBondingStyle() {
|
public int getBondingStyle() {
|
||||||
return BONDING_STYLE_REQUIRE_KEY;
|
return BONDING_STYLE_REQUIRE_KEY;
|
||||||
|
@ -31,7 +31,14 @@ public class AmazfitBipUProFirmwareInfo extends HuamiFirmwareInfo {
|
|||||||
private static Map<Integer, String> crcToVersion = new HashMap<>();
|
private static Map<Integer, String> crcToVersion = new HashMap<>();
|
||||||
|
|
||||||
static {
|
static {
|
||||||
// no known fw yet
|
// fw
|
||||||
|
crcToVersion.put(46603, "1.0.2.92");
|
||||||
|
|
||||||
|
// resources
|
||||||
|
crcToVersion.put(33532, "1.0.2.92");
|
||||||
|
|
||||||
|
// font
|
||||||
|
crcToVersion.put(60101, "8");
|
||||||
}
|
}
|
||||||
|
|
||||||
public AmazfitBipUProFirmwareInfo(byte[] bytes) {
|
public AmazfitBipUProFirmwareInfo(byte[] bytes) {
|
||||||
|
@ -10,12 +10,4 @@
|
|||||||
android:persistent="true"
|
android:persistent="true"
|
||||||
android:summary="@string/mi2_prefs_display_items_summary"
|
android:summary="@string/mi2_prefs_display_items_summary"
|
||||||
android:title="@string/mi2_prefs_display_items" />
|
android:title="@string/mi2_prefs_display_items" />
|
||||||
<ListPreference
|
|
||||||
android:icon="@drawable/ic_language"
|
|
||||||
android:defaultValue="auto"
|
|
||||||
android:entries="@array/pref_amazfitbip_language"
|
|
||||||
android:entryValues="@array/pref_amazfitbip_language_values"
|
|
||||||
android:key="language"
|
|
||||||
android:summary="%s"
|
|
||||||
android:title="@string/pref_title_language" />
|
|
||||||
</androidx.preference.PreferenceScreen>
|
</androidx.preference.PreferenceScreen>
|
||||||
|
Loading…
Reference in New Issue
Block a user