Move status bar accessibility title to pane

The window title is new. It's actually confusing
TalkBack because announcing "Status Bar" when
the notification shade appears isn't helpful.

Since the window itself pretty much just holds
a bunch of stuff that is associated with the
top of the screen, we're actually removing
its title.

Re-adding the status bar title as a pane title
on the actual View that makes the bar.

Bug: 77984839
Test: TalkBack now announces Notification shade
properly rather than Status Bar.

Change-Id: I394009584b0a90a386dab5128654f943acecad47
This commit is contained in:
Phil Weaver
2018-04-17 17:53:29 -07:00
parent ed2a3cadc1
commit 06c9e011d3
2 changed files with 1 additions and 1 deletions

View File

@@ -28,6 +28,7 @@
android:orientation="vertical"
android:focusable="false"
android:descendantFocusability="afterDescendants"
android:accessibilityPaneTitle="@string/status_bar"
>
<ImageView

View File

@@ -108,7 +108,6 @@ public class StatusBarWindowManager implements RemoteInputController.Callback, D
mLp.gravity = Gravity.TOP;
mLp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE;
mLp.setTitle("StatusBar");
mLp.accessibilityTitle = mContext.getString(R.string.status_bar);
mLp.packageName = mContext.getPackageName();
mLp.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
mStatusBarView = statusBarView;