From c8a53a9391649ab216ee03f597225d8a091462a9 Mon Sep 17 00:00:00 2001 From: jasonwshsu Date: Wed, 5 Apr 2023 23:58:33 +0800 Subject: [PATCH] Fix pair another dialog doesn't show up after pairing in all bluetooth device page. Solution: Finish the page immediately to back to previous page when already BONDED the device in all bluetooth device page. Bug: 270096758 Test: make RunSettingsRoboTests ROBOTEST_FILTER=ViewAllBluetoothDevicesPreferenceControllerTest Change-Id: I13a88c3fbe0c6851f9446a9f574a1c18f934cd2e --- res/xml/hearing_device_pairing_detail.xml | 6 +- .../HearingDevicePairingDetail.java | 7 ++ ...lBluetoothDevicesPreferenceController.java | 88 +++++++++++++++++++ .../BluetoothDevicePairingDetailBase.java | 3 + ...etoothDevicesPreferenceControllerTest.java | 82 +++++++++++++++++ 5 files changed, 183 insertions(+), 3 deletions(-) create mode 100644 src/com/android/settings/accessibility/ViewAllBluetoothDevicesPreferenceController.java create mode 100644 tests/robotests/src/com/android/settings/accessibility/ViewAllBluetoothDevicesPreferenceControllerTest.java diff --git a/res/xml/hearing_device_pairing_detail.xml b/res/xml/hearing_device_pairing_detail.xml index 29a611879a7..0ccd000a4a3 100644 --- a/res/xml/hearing_device_pairing_detail.xml +++ b/res/xml/hearing_device_pairing_detail.xml @@ -26,11 +26,11 @@ android:key="device_control_category" android:title="@string/accessibility_found_all_devices"> + settings:useAdminDisabledSummary="true" + settings:controller="com.android.settings.accessibility.ViewAllBluetoothDevicesPreferenceController"/>