mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 21:06:50 +01:00
Amazfit GTR: remove menu item settings, since we do not know how to do this yet
This commit is contained in:
parent
3c6d34ff30
commit
42312bba60
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
11
app/src/main/res/xml/devicesettings_amazfitgtr.xml
Normal file
11
app/src/main/res/xml/devicesettings_amazfitgtr.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user