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

Commit ca505661 authored by Svetoslav's avatar Svetoslav
Browse files

NumberPicker not announcing current selection.

bug:17299486

Change-Id: I73fd33ef3518ef8e6cdd40cd036e8f104dc492b6
parent a83a6d9d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1878,6 +1878,9 @@ public class NumberPicker extends LinearLayout {
        if (mOnValueChangeListener != null) {
            mOnValueChangeListener.onValueChange(this, previous, mValue);
        }

        mAccessibilityNodeProvider.sendAccessibilityEventForVirtualText(
                AccessibilityEvent.TYPE_VIEW_FOCUSED);
    }

    /**
@@ -2556,6 +2559,7 @@ public class NumberPicker extends LinearLayout {
            getLocationOnScreen(locationOnScreen);
            boundsInScreen.offset(locationOnScreen[0], locationOnScreen[1]);
            info.setBoundsInScreen(boundsInScreen);
            info.setLiveRegion(View.ACCESSIBILITY_LIVE_REGION_ASSERTIVE);
            return info;
        }