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

Commit 3531a95a authored by Adrian Roos's avatar Adrian Roos
Browse files

Hide StatusBarWindowView from a11y when bouncer is up

Bug: 20343910
Change-Id: Ib4c5e57f8494d980c3b2db2cd37fb478da7996eb
parent ef70f8e4
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -81,10 +81,13 @@ public class PanelBar extends FrameLayout {
    }

    public void setBouncerShowing(boolean showing) {
        int important = showing ? IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
                : IMPORTANT_FOR_ACCESSIBILITY_AUTO;

        setImportantForAccessibility(important);

        if (mPanelHolder != null) {
            mPanelHolder.setImportantForAccessibility(
                    showing ? IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
                            : IMPORTANT_FOR_ACCESSIBILITY_AUTO);
            mPanelHolder.setImportantForAccessibility(important);
        }
    }