From 11081cae501808b6b5c52986b72da8ca067e4c88 Mon Sep 17 00:00:00 2001 From: pingzhi wang Date: Thu, 11 Aug 2022 16:34:59 +0800 Subject: [PATCH] Refresh "Device details" after resuming "HD Audio: LDAC" is still on when relaunch "Device details" from recent apps after turning it off Call refresh() after resuming. Bug: 242351058 Test: 1.Long click "Bluetooth" form QS. 2.Pair and connect with IOT supporting LDAC. 3.Click the settings icon to the right of the connected device. 4.Turn on "HD audio: LDAC". 5.Click home key, make it in recent apps. 6.Settings-> Connected devices -> Media devices -> settings icon. 7.Turn off "HD audio: LDAC". 8.Try to relaunch the first "Device details" screen (step 5) from recent apps. Change-Id: I4a0c475211669f61e718f47a713a982ac58e914a --- .../settings/bluetooth/BluetoothDetailsProfilesController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java b/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java index 6f39121af34..87770d2202d 100644 --- a/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java +++ b/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java @@ -456,6 +456,7 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll item.registerCallback(this); } mProfileManager.addServiceListener(this); + refresh(); } @Override