diff options
| author | 2023-06-16 16:14:33 +0800 | |
|---|---|---|
| committer | 2023-06-19 06:03:47 +0000 | |
| commit | 6bd64db794e5bd72bef574ea869b2effcc229f56 (patch) | |
| tree | 3b2b1e6b11c649e0b81587f777a4dd4ddb650a40 | |
| parent | 2c270dd7a432fb3237b9bd354e3911f1e0df2bfd (diff) | |
[Broadcast] broadcastCode of non-encrypted broadcast is null
When the user start the non-encrypted boradcast, the system should
set the broadcastCode as null
Bug: 287133970
Test: build pass and manually test.
Change-Id: Ic62cf4bf9d2311f9b5bc04108995e518cac4d6d7
| -rw-r--r-- | packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothLeBroadcast.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothLeBroadcast.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothLeBroadcast.java index 79fb56602328..a05a6e9781da 100644 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothLeBroadcast.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/LocalBluetoothLeBroadcast.java @@ -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() { |