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

Commit 9a2a7030 authored by Shawn Lee's avatar Shawn Lee
Browse files

Mark shade header system icons as not clickable in non-large screen shade

The new system icons container was prompting TalkBack users to activate it, when doing so does not have any effect.

Bug: 297472710
Test: walked through TalkBack to verify the system icons are read out without activation prompt
Change-Id: Ib4f49d67b9864271153d3cb26e1863e0bdc77634
parent 71a57780
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -484,11 +484,13 @@ constructor(
        if (largeScreenActive) {
            logInstantEvent("Large screen constraints set")
            header.setTransition(LARGE_SCREEN_HEADER_TRANSITION_ID)
            systemIconsHoverContainer.isClickable = true
            systemIconsHoverContainer.setOnClickListener { shadeCollapseAction?.run() }
        } else {
            logInstantEvent("Small screen constraints set")
            header.setTransition(HEADER_TRANSITION_ID)
            systemIconsHoverContainer.setOnClickListener(null)
            systemIconsHoverContainer.isClickable = false
        }
        header.jumpToState(header.startState)
        updatePosition()