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

Commit ade5e8dc authored by abdullahirum's avatar abdullahirum
Browse files

Add post content description for preview

This CL adds a content description to the lock screen preview in the home screen

Flag: NONE
Bug: 322445382
Test: manual
Change-Id: Icd55fe65c4afe84eb2bee4ae6ca1c1098a07fad0
parent a00436e8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -37,6 +37,11 @@ class CarouselAccessibilityDelegate(
    override fun onInitializeAccessibilityNodeInfo(host: View, info: AccessibilityNodeInfo) {
        super.onInitializeAccessibilityNodeInfo(host, info)
        info.isScrollable = true

        // for some reason this action is needed for the subsequent two action to appear in the
        // accessibility action menu (this action doesn't show)
        info.addAction(AccessibilityNodeInfo.ACTION_CLICK) // Standard click action

        info.addAction(
            AccessibilityNodeInfo.AccessibilityAction(
                ACTION_SCROLL_FORWARD,
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ object ClockCarouselViewBinder {
                            },
                            isTwoPaneAndSmallWidth = isTwoPaneAndSmallWidth,
                        )
                        screenPreviewClickView.accessibilityDelegate = carouselAccessibilityDelegate
                        carouselView.accessibilityDelegate = carouselAccessibilityDelegate
                        screenPreviewClickView.setOnSideClickedListener { isStart ->
                            if (isStart) carouselView.scrollToPrevious()
                            else carouselView.scrollToNext()