Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c918fa81 authored by changbetty's avatar changbetty
Browse files

[LE Audio] Display the correct title on broadcast assistant device

Bug: 241509690
Test: manual test
Change-Id: Iaf3a54108faaa82354ca30656dd4b7a384806408
parent 4909c792
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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);
        }