commit | 97ada9bc8407b7fd5f8b6f7b80640e301575be70 | [log] [tgz] |
---|---|---|
author | Shaowei Shen <shaoweishen@google.com> | Fri Dec 10 04:05:07 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Dec 10 04:05:07 2021 +0000 |
tree | 4daa4bcf000005dd1b2539df8dd7b71d8fd4858f | |
parent | 78e4849f0b7b29f950dedf64a2c58e5a2e63f3f0 [diff] | |
parent | 087e56a1a664145763c009cd74dbc30b6e84ac22 [diff] |
Merge "[Output Switcher] Set title on window" into sc-v2-dev am: ecc936a08e am: 087e56a1a6 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16387794 Change-Id: Ida276d31f2ce8237f907b200a08cc0559269c325
diff --git a/packages/SystemUI/src/com/android/systemui/media/dialog/MediaOutputBaseDialog.java b/packages/SystemUI/src/com/android/systemui/media/dialog/MediaOutputBaseDialog.java index ae9a747..a9e9f0f 100644 --- a/packages/SystemUI/src/com/android/systemui/media/dialog/MediaOutputBaseDialog.java +++ b/packages/SystemUI/src/com/android/systemui/media/dialog/MediaOutputBaseDialog.java
@@ -54,6 +54,7 @@ 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 @@ 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);