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

Commit f5094905 authored by Jackal Guo's avatar Jackal Guo Committed by Android (Google) Code Review
Browse files

Merge "Update the accessibility overlay title"

parents ef855275 25a33cbd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3870,7 +3870,8 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
        final boolean isAccessibilityOverlay =
                windowInfo.type == WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY;
        if (TextUtils.isEmpty(windowInfo.title) && (isPanelWindow || isAccessibilityOverlay)) {
            windowInfo.title = mAttrs.getTitle();
            final CharSequence title = mAttrs.getTitle();
            windowInfo.title = TextUtils.isEmpty(title) ? null : title;
        }
        windowInfo.accessibilityIdOfAnchor = mAttrs.accessibilityIdOfAnchor;
        windowInfo.focused = isFocused();