Use broadcast name instead of program info.

Bug: 331547596
Test: atest
Change-Id: Ie5c35484367a32daeb5020fd03e8653e8c70b4be
This commit is contained in:
chelseahao
2024-05-22 19:01:36 +08:00
parent 9c0654daea
commit 7da939b2e3
5 changed files with 26 additions and 30 deletions

View File

@@ -214,6 +214,9 @@ public class AudioSharingNamePreferenceController extends BasePreferenceControll
ThreadUtils.postOnBackgroundThread(
() -> {
if (mBroadcast != null) {
mBroadcast.setBroadcastName((String) newValue);
// We currently don't have a UI field for program info so we keep it
// consistent with broadcast name.
mBroadcast.setProgramInfo((String) newValue);
if (isBroadcasting(mBtManager)) {
mBroadcast.updateBroadcast();
@@ -242,7 +245,7 @@ public class AudioSharingNamePreferenceController extends BasePreferenceControll
ThreadUtils.postOnBackgroundThread(
() -> {
if (mBroadcast != null) {
String name = mBroadcast.getProgramInfo();
String name = mBroadcast.getBroadcastName();
AudioSharingUtils.postOnMainThread(
mContext,
() -> {