Use broadcast name instead of program info.
Bug: 331547596 Test: atest Change-Id: Ie5c35484367a32daeb5020fd03e8653e8c70b4be
This commit is contained in:
@@ -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,
|
||||
() -> {
|
||||
|
Reference in New Issue
Block a user