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

Commit 058e1f5a authored by Svetoslav's avatar Svetoslav Committed by Android (Google) Code Review
Browse files

Merge "NumberPicker not announcing current selection." into lmp-dev

parents b10e39e7 ca505661
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;
        }