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

Commit 06c9e011 authored by Phil Weaver's avatar Phil Weaver
Browse files

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
parent ed2a3cad
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@
    android:orientation="vertical"
    android:focusable="false"
    android:descendantFocusability="afterDescendants"
    android:accessibilityPaneTitle="@string/status_bar"
    >

    <ImageView
+0 −1
Original line number Diff line number Diff line
@@ -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;