1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-27 19:15:50 +01:00

make CheckBoxPreference a SwitchPreference for reconnect settings

This commit is contained in:
Andreas Shimokawa 2023-06-21 19:32:02 +02:00
parent 7c5cd4c032
commit f8d06708e1
2 changed files with 4 additions and 6 deletions

View File

@ -3,10 +3,9 @@
<PreferenceCategory
android:title="@string/connection_over_bt_classic" />
<CheckBoxPreference
<SwitchPreference
android:icon="@drawable/ic_bluetooth"
android:key="prefs_key_device_reconnect_on_acl"
android:title="@string/autoconnect_from_device_title"
android:summary="@string/autoconnect_from_device_summary"
android:layout="@layout/preference_checkbox" />
android:summary="@string/autoconnect_from_device_summary" />
</PreferenceScreen>

View File

@ -3,11 +3,10 @@
<PreferenceCategory
android:title="@string/connection_over_ble" />
<CheckBoxPreference
<SwitchPreference
android:icon="@drawable/ic_bluetooth"
android:key="prefs_key_device_auto_reconnect"
android:title="@string/auto_reconnect_ble_title"
android:summary="@string/auto_reconnect_ble_summary"
android:layout="@layout/preference_checkbox"
android:defaultValue="true" />
</PreferenceScreen>
</PreferenceScreen>