Merge "Early return when mA2dp is null (disconnected) to avoid null object reference" into udc-dev

This commit is contained in:
Eric Laurent
2023-06-16 15:06:43 +00:00
committed by Android (Google) Code Review

View File

@@ -218,8 +218,8 @@ public class BtHelper {
if (AudioService.DEBUG_VOL) {
AudioService.sVolumeLogger.enqueue(new EventLogger.StringEvent(
"setAvrcpAbsoluteVolumeIndex: bailing due to null mA2dp").printLog(TAG));
return;
}
return;
}
if (!mAvrcpAbsVolSupported) {
AudioService.sVolumeLogger.enqueue(new EventLogger.StringEvent(