Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15c7f761 authored by hughchen's avatar hughchen
Browse files

Add “Pair new device” on Bluetooth screen

* Add AddDevicePreferenceController in bluetooth_screen.xml

Bug: 79298886
Test: make -j50 RunSettingsRoboTests
Change-Id: I4e43e31d05c297ca206cd2b0f747bb615c3dfcd4
parent 7e31e22f
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
@@ -15,5 +15,19 @@
-->
<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:settings="http://schemas.android.com/apk/res-auto"
    android:key="bluetooth_switchbar_screen"
    android:title="@string/bluetooth_settings_title" />
 No newline at end of file
    android:title="@string/bluetooth_settings_title">

    <com.android.settingslib.RestrictedPreference
        android:key="bluetooth_screen_add_bt_devices"
        android:title="@string/connected_device_add_device_title"
        android:icon="@drawable/ic_menu_add"
        android:summary="@string/connected_device_add_device_summary"
        android:fragment="com.android.settings.bluetooth.BluetoothPairingDetail"
        settings:allowDividerAbove="true"
        settings:userRestriction="no_config_bluetooth"
        settings:useAdminDisabledSummary="true"
        settings:controller="com.android.settings.connecteddevice.AddDevicePreferenceController"/>

</PreferenceScreen>
 No newline at end of file