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

Commit 14410b0a authored by Adrian Roos's avatar Adrian Roos
Browse files

Hide keyguard bottom area from a11y when alpha is zero

Bug: 20535583
Bug: 20343910
Change-Id: I1557e3b1acd8cab028673bbcb7cd54b068c4b48a
parent 27b96cc7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1720,8 +1720,11 @@ public class NotificationPanelView extends PanelView implements
    }

    private void updateKeyguardBottomAreaAlpha() {
        mKeyguardBottomArea.setAlpha(
                Math.min(getKeyguardContentsAlpha(), 1 - getQsExpansionFraction()));
        float alpha = Math.min(getKeyguardContentsAlpha(), 1 - getQsExpansionFraction());
        mKeyguardBottomArea.setAlpha(alpha);
        mKeyguardBottomArea.setImportantForAccessibility(alpha == 0f
                ? IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS
                : IMPORTANT_FOR_ACCESSIBILITY_AUTO);
    }

    private float getNotificationsTopY() {