Merge "[Broadcast] broadcastCode of non-encrypted broadcast is null" into udc-qpr-dev

This commit is contained in:
SongFerng Wang
2023-06-20 10:22:13 +00:00
committed by Android (Google) Code Review

View File

@@ -237,7 +237,8 @@ public class LocalBluetoothLeBroadcast implements LocalBluetoothProfile {
"startBroadcast: language = " + language + " ,programInfo = " + programInfo);
}
buildContentMetadata(language, programInfo);
mService.startBroadcast(mBluetoothLeAudioContentMetadata, mBroadcastCode);
mService.startBroadcast(mBluetoothLeAudioContentMetadata,
(mBroadcastCode != null && mBroadcastCode.length > 0) ? mBroadcastCode : null);
}
public String getProgramInfo() {