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 <PreferenceCategory
android:title="@string/connection_over_bt_classic" /> android:title="@string/connection_over_bt_classic" />
<CheckBoxPreference <SwitchPreference
android:icon="@drawable/ic_bluetooth" android:icon="@drawable/ic_bluetooth"
android:key="prefs_key_device_reconnect_on_acl" android:key="prefs_key_device_reconnect_on_acl"
android:title="@string/autoconnect_from_device_title" android:title="@string/autoconnect_from_device_title"
android:summary="@string/autoconnect_from_device_summary" android:summary="@string/autoconnect_from_device_summary" />
android:layout="@layout/preference_checkbox" />
</PreferenceScreen> </PreferenceScreen>

View File

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