mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-13 10:31:03 +01:00
9bfef4cf4f
This allows to construct per-device settings by device type very easily device coordinators just do the following to declare which setting they support, the settings activity is then composed at runtime. @Override public int[] getSupportedDeviceSpecificSettings(GBDevice device) { return new int[]{ R.xml.devicesettings_miband3, R.xml.devicesettings_swipeunlock, R.xml.devicesettings_pairingkey }; }
13 lines
667 B
XML
13 lines
667 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<MultiSelectListPreference
|
|
android:icon="@drawable/ic_widgets"
|
|
android:defaultValue="@array/pref_mi2_display_items_default"
|
|
android:dialogTitle="@string/mi2_prefs_display_items"
|
|
android:entries="@array/pref_mi2_display_items"
|
|
android:entryValues="@array/pref_mi2_display_items_values"
|
|
android:key="display_items"
|
|
android:summary="@string/mi2_prefs_display_items_summary"
|
|
android:title="@string/mi2_prefs_display_items" />
|
|
</androidx.preference.PreferenceScreen>
|