1
0
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:
Andreas Shimokawa 2021-10-22 14:08:39 +02:00
parent 8a3fc19285
commit 1341501ac4
3 changed files with 35 additions and 9 deletions

View File

@ -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
public int getBondingStyle() {
return BONDING_STYLE_REQUIRE_KEY;

View File

@ -31,7 +31,14 @@ public class AmazfitBipUProFirmwareInfo extends HuamiFirmwareInfo {
private static Map<Integer, String> crcToVersion = new HashMap<>();
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) {

View File

@ -10,12 +10,4 @@
android:persistent="true"
android:summary="@string/mi2_prefs_display_items_summary"
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>