From c918fa812b5a2ae1ce1d056662993309c4d18b2d Mon Sep 17 00:00:00 2001 From: changbetty Date: Tue, 23 Aug 2022 02:53:19 +0000 Subject: [PATCH] [LE Audio] Display the correct title on broadcast assistant device Bug: 241509690 Test: manual test Change-Id: Iaf3a54108faaa82354ca30656dd4b7a384806408 --- .../settings/bluetooth/BluetoothBroadcastDialog.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/com/android/settings/bluetooth/BluetoothBroadcastDialog.java b/src/com/android/settings/bluetooth/BluetoothBroadcastDialog.java index dd06b679910..62a66cf1d5a 100644 --- a/src/com/android/settings/bluetooth/BluetoothBroadcastDialog.java +++ b/src/com/android/settings/bluetooth/BluetoothBroadcastDialog.java @@ -74,12 +74,12 @@ public class BluetoothBroadcastDialog extends InstrumentedDialogFragment { TextView title = layout.findViewById(com.android.settingslib.R.id.dialog_title); TextView subTitle = layout.findViewById(com.android.settingslib.R.id.dialog_subtitle); - title.setText(mContext.getString(R.string.bluetooth_broadcast_dialog_title)); - subTitle.setText( - mContext.getString(R.string.bluetooth_broadcast_dialog_broadcast_message)); Button broadcastBtn = layout.findViewById(com.android.settingslib.R.id.positive_btn); if (isBroadcastSupported() && mIsMediaStreaming) { + title.setText(mContext.getString(R.string.bluetooth_broadcast_dialog_title)); + subTitle.setText( + mContext.getString(R.string.bluetooth_broadcast_dialog_broadcast_message)); broadcastBtn.setVisibility(View.VISIBLE); if (TextUtils.isEmpty(mCurrentAppLabel)) { broadcastBtn.setText(mContext.getString(R.string.bluetooth_broadcast_dialog_title)); @@ -92,6 +92,9 @@ public class BluetoothBroadcastDialog extends InstrumentedDialogFragment { launchMediaOutputBroadcastDialog(); }); } else { + title.setText(mContext.getString(R.string.bluetooth_find_broadcast)); + subTitle.setText( + mContext.getString(R.string.bluetooth_broadcast_dialog_find_message)); broadcastBtn.setVisibility(View.GONE); }