Header for hearing aids now listed in one summary am: 82ce1d19de am: d5d0ee0cc7

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17180630

Change-Id: I760bb38ab1b1afcdd51c883ff2a4b4848fe96056
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
jasonwshsu
2022-05-14 01:14:02 +00:00
committed by Automerger Merge Worker

View File

@@ -75,10 +75,8 @@ public class BluetoothDetailsHeaderController extends BluetoothDetailsController
if (TextUtils.isEmpty(summaryText)) {
// If first summary is unavailable, not to show second summary.
mHeaderController.setSecondSummary((CharSequence)null);
} else {
// If both the hearing aids are connected, two device status should be shown.
mHeaderController.setSecondSummary(mDeviceManager.getSubDeviceSummary(mCachedDevice));
}
mHeaderController.setLabel(mCachedDevice.getName());
mHeaderController.setIcon(pair.first);
mHeaderController.setIconContentDescription(pair.second);