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

Commit 023b7bc3 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
Merged-In: Ib4f49d67b9864271153d3cb26e1863e0bdc77634
parent 6c91ff38
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -479,11 +479,13 @@ constructor(
        if (largeScreenActive) {
            logInstantEvent("Large screen constraints set")
            header.setTransition(LARGE_SCREEN_HEADER_TRANSITION_ID)
            systemIcons.isClickable = true
            systemIcons.setOnClickListener { shadeCollapseAction?.run() }
        } else {
            logInstantEvent("Small screen constraints set")
            header.setTransition(HEADER_TRANSITION_ID)
            systemIcons.setOnClickListener(null)
            systemIcons.isClickable = false
        }
        header.jumpToState(header.startState)
        updatePosition()