@@ -3783,7 +3783,7 @@ void updateBoundsForVirtualViewId(int virtualViewId, Rect virtualViewBounds) {
3783
3783
virtualViewBounds .set ((int ) rect .left , (int ) rect .top , (int ) rect .right , (int ) rect .bottom );
3784
3784
}
3785
3785
3786
- private static class AccessibilityHelper extends ExploreByTouchHelper {
3786
+ public static class AccessibilityHelper extends ExploreByTouchHelper {
3787
3787
3788
3788
private final BaseSlider <?, ?, ?> slider ;
3789
3789
final Rect virtualViewBounds = new Rect ();
@@ -3806,15 +3806,15 @@ protected int getVirtualViewAt(float x, float y) {
3806
3806
}
3807
3807
3808
3808
@ Override
3809
- protected void getVisibleVirtualViews (List <Integer > virtualViewIds ) {
3809
+ protected void getVisibleVirtualViews (@ NonNull List <Integer > virtualViewIds ) {
3810
3810
for (int i = 0 ; i < slider .getValues ().size (); i ++) {
3811
3811
virtualViewIds .add (i );
3812
3812
}
3813
3813
}
3814
3814
3815
3815
@ Override
3816
3816
protected void onPopulateNodeForVirtualView (
3817
- int virtualViewId , AccessibilityNodeInfoCompat info ) {
3817
+ int virtualViewId , @ NonNull AccessibilityNodeInfoCompat info ) {
3818
3818
3819
3819
info .addAction (AccessibilityNodeInfoCompat .AccessibilityActionCompat .ACTION_SET_PROGRESS );
3820
3820
@@ -3855,7 +3855,8 @@ protected void onPopulateNodeForVirtualView(
3855
3855
if (values .size () > 1 ) {
3856
3856
verbalValueType = startOrEndDescription (virtualViewId );
3857
3857
}
3858
- contentDescription .append (String .format (Locale .US , "%s, %s" , verbalValueType , verbalValue ));
3858
+ contentDescription .append (
3859
+ String .format (Locale .getDefault (), "%s, %s" , verbalValueType , verbalValue ));
3859
3860
info .setContentDescription (contentDescription .toString ());
3860
3861
3861
3862
slider .updateBoundsForVirtualViewId (virtualViewId , virtualViewBounds );
@@ -3878,7 +3879,7 @@ private String startOrEndDescription(int virtualViewId) {
3878
3879
3879
3880
@ Override
3880
3881
protected boolean onPerformActionForVirtualView (
3881
- int virtualViewId , int action , Bundle arguments ) {
3882
+ int virtualViewId , int action , @ Nullable Bundle arguments ) {
3882
3883
if (!slider .isEnabled ()) {
3883
3884
return false ;
3884
3885
}
0 commit comments