mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-02 15:02:56 +01:00
c1b7ce2308
Amazfit GTS2/GTR2: Add missing menu items Fixes #2193 Fixes #2230 Fixes #2242 Amazfit GTS2/GTR2: Fix setting menu items At least on the GTR2e, including the "watchface" menu item causes the configuration request to be ignored. Assuming the other GTS2 and GTR2 variants behave the same, this patch ensures the forceWatchface argument is set to false when setting display items. Additionally, we now use the correct resource ID for the default settings. Co-authored-by: Vianney le Clément de Saint-Marcq <code@quartic.eu> Reviewed-on: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/2249 Co-Authored-By: Vianney le Clément de Saint-Marcq <vianney@noreply.codeberg.org> Co-Committed-By: Vianney le Clément de Saint-Marcq <vianney@noreply.codeberg.org>
22 lines
1.1 KiB
XML
22 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<com.mobeta.android.dslv.DragSortListPreference
|
|
android:icon="@drawable/ic_widgets"
|
|
android:defaultValue="@array/pref_gtsgtr2_display_items_default"
|
|
android:dialogTitle="@string/mi2_prefs_display_items"
|
|
android:entries="@array/pref_gtsgtr2_display_items"
|
|
android:entryValues="@array/pref_gtsgtr2_display_items_values"
|
|
android:key="display_items_sortable"
|
|
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>
|