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

Commit 97ada9bc authored by Shaowei Shen's avatar Shaowei Shen Committed by Automerger Merge Worker
Browse files

Merge "[Output Switcher] Set title on window" into sc-v2-dev am: ecc936a0 am: 087e56a1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16387794

Change-Id: Ida276d31f2ce8237f907b200a08cc0559269c325
parents 78e4849f 087e56a1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ public abstract class MediaOutputBaseDialog extends SystemUIDialog implements
        MediaOutputController.Callback, Window.Callback {

    private static final String TAG = "MediaOutputDialog";
    private static final String EMPTY_TITLE = " ";

    private final Handler mMainThreadHandler = new Handler(Looper.getMainLooper());
    private final RecyclerView.LayoutManager mLayoutManager;
@@ -110,6 +111,9 @@ public abstract class MediaOutputBaseDialog extends SystemUIDialog implements
        lp.setFitInsetsIgnoringVisibility(true);
        window.setAttributes(lp);
        window.setContentView(mDialogView);
        // Sets window to a blank string to avoid talkback announce app label first when pop up,
        // which doesn't make sense.
        window.setTitle(EMPTY_TITLE);

        mHeaderTitle = mDialogView.requireViewById(R.id.header_title);
        mHeaderSubtitle = mDialogView.requireViewById(R.id.header_subtitle);