Display Bluetooth Disconnected Message
The goal is to communicate an error state which indicates that Bluetooth is disconnected. The pop-up that prompts the user to connect to Bluetooth does not appear again on re-entering the app after it has been dismissed. This has been fixed by creating several statuses which indicate error conditions, download pending or success statuses. The specific status NO_DEVICE_CONNECTED will allow for the "Bluetooth is disconnected" message to display by returning a null result. Tag: #stability Bug: 275561845 Test: atest AvrcpControllerTest (cherry picked from https://android-review.googlesource.com/q/commit:13f31c651f782cdd2c6f068013f50fce58c124fa) Merged-In: I6fb279d49db4d6cdbc0850a684a22033390b557e Change-Id: I6fb279d49db4d6cdbc0850a684a22033390b557e
Showing
- android/app/src/com/android/bluetooth/avrcpcontroller/AvrcpControllerService.java 27 additions, 17 deletions...oid/bluetooth/avrcpcontroller/AvrcpControllerService.java
- android/app/src/com/android/bluetooth/avrcpcontroller/BluetoothMediaBrowserService.java 66 additions, 6 deletions...uetooth/avrcpcontroller/BluetoothMediaBrowserService.java
- android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/AvrcpControllerServiceTest.java 87 additions, 1 deletion...bluetooth/avrcpcontroller/AvrcpControllerServiceTest.java
Loading
Please register or sign in to comment