Merge "[Output Switcher] Set title on window" into sc-v2-dev am: ecc936a08e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16387794 Change-Id: I3542d5a4fb912e4924268e242d6c74f8af1ec6ff
This commit is contained in:
@@ -53,6 +53,7 @@ public abstract class MediaOutputBaseDialog extends SystemUIDialog implements
|
|||||||
MediaOutputController.Callback, Window.Callback {
|
MediaOutputController.Callback, Window.Callback {
|
||||||
|
|
||||||
private static final String TAG = "MediaOutputDialog";
|
private static final String TAG = "MediaOutputDialog";
|
||||||
|
private static final String EMPTY_TITLE = " ";
|
||||||
|
|
||||||
private final Handler mMainThreadHandler = new Handler(Looper.getMainLooper());
|
private final Handler mMainThreadHandler = new Handler(Looper.getMainLooper());
|
||||||
private final RecyclerView.LayoutManager mLayoutManager;
|
private final RecyclerView.LayoutManager mLayoutManager;
|
||||||
@@ -109,6 +110,9 @@ public abstract class MediaOutputBaseDialog extends SystemUIDialog implements
|
|||||||
lp.setFitInsetsIgnoringVisibility(true);
|
lp.setFitInsetsIgnoringVisibility(true);
|
||||||
window.setAttributes(lp);
|
window.setAttributes(lp);
|
||||||
window.setContentView(mDialogView);
|
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);
|
mHeaderTitle = mDialogView.requireViewById(R.id.header_title);
|
||||||
mHeaderSubtitle = mDialogView.requireViewById(R.id.header_subtitle);
|
mHeaderSubtitle = mDialogView.requireViewById(R.id.header_subtitle);
|
||||||
|
|||||||
Reference in New Issue
Block a user