mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-02 15:02:56 +01:00
7f24ba8ffb
- get rid of pre-lollipop BLE discovery (nowadays we support only lollipop and above) and related preference - get rid of the sequenced BT-then-BLE-scan that wasn't working reliably anyway and was causing a recursion - add a caching layer for already processed devices (the same device is found multiple times during discovery) - add a caching layer for device name in GBDeviceCandidate (many coordinators will ask for it, and it's a very expensive operation)
39 lines
1.7 KiB
XML
39 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
<PreferenceCategory
|
|
android:key="pref_discovery_pairing"
|
|
android:title="@string/activity_prefs_discovery_pairing">
|
|
<CheckBoxPreference
|
|
android:defaultValue="true"
|
|
android:key="ignore_bonded_devices"
|
|
android:layout="@layout/preference_checkbox"
|
|
android:summary="@string/ignore_bonded_devices_description"
|
|
android:title="@string/ignore_bonded_devices" />
|
|
<CheckBoxPreference
|
|
android:defaultValue="false"
|
|
android:key="enable_companiondevice_pairing"
|
|
android:layout="@layout/preference_checkbox"
|
|
android:summary="@string/companiondevice_pairing_details"
|
|
android:title="@string/companiondevice_pairing" />
|
|
<CheckBoxPreference
|
|
android:defaultValue="false"
|
|
android:key="discover_unsupported_devices"
|
|
android:layout="@layout/preference_checkbox"
|
|
android:summary="@string/discover_unsupported_devices_description"
|
|
android:title="@string/discover_unsupported_devices" />
|
|
<SeekBarPreference
|
|
android:key="scanning_intensity"
|
|
android:max="3"
|
|
android:min="0"
|
|
android:title="@string/discovery_scanning_intensity"
|
|
android:defaultValue="1"
|
|
app:showSeekBarValue="true" />
|
|
<Preference
|
|
android:selectable="false"
|
|
android:persistent="false"
|
|
android:summary="@string/discovery_scanning_intensity_warning" />
|
|
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|