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

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

Change-Id: I172173f17adda49ddcfa38fcc75ede658d742ffa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
jasonwshsu
2022-05-14 00:57:42 +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);