1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-29 12:05:53 +01:00

Amazfit GTR: remove menu item settings, since we do not know how to do this yet

This commit is contained in:
Andreas Shimokawa 2019-10-28 15:39:23 +01:00
parent 3c6d34ff30
commit 42312bba60
3 changed files with 20 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import java.io.IOException;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.HuamiFWHelper;
import nodomain.freeyourgadget.gadgetbridge.devices.huami.amazfitgtr.AmazfitGTRFWHelper;
import nodomain.freeyourgadget.gadgetbridge.service.btle.TransactionBuilder;
import nodomain.freeyourgadget.gadgetbridge.service.devices.huami.amazfitbip.AmazfitBipSupport;
public class AmazfitGTRSupport extends AmazfitBipSupport {
@ -42,4 +43,10 @@ public class AmazfitGTRSupport extends AmazfitBipSupport {
public HuamiFWHelper createFWHelper(Uri uri, Context context) throws IOException {
return new AmazfitGTRFWHelper(uri, context);
}
@Override
protected AmazfitGTRSupport setDisplayItems(TransactionBuilder builder) {
// not supported yet
return this;
}
}

View File

@ -397,6 +397,7 @@
<item name="de_DE">@string/german</item>
<item name="it_IT">@string/italian</item>
<item name="fr_FR">@string/french</item>
<item name="pt_BR">@string/portuguese</item>
<item name="tr_TR">@string/turkish</item>
<item name="ru_RU">@string/russian</item>
</string-array>
@ -410,6 +411,7 @@
<item>de_DE</item>
<item>it_IT</item>
<item>fr_FR</item>
<item>pt_BR</item>
<item>tr_TR</item>
<item>ru_RU</item>
</string-array>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<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>