handlePageSelected is not working when selecting index 0

Author: Morteza-RastgooCreated Oct 10, 2017Updated Jun 11, 2024

I used the example

    ScaleCircleNavigator scaleCircleNavigator = new ScaleCircleNavigator(this);
    scaleCircleNavigator.setMaxRadius(15);
    scaleCircleNavigator.setMinRadius(10);
    scaleCircleNavigator.setCircleCount( PAGE_COUNT );
    scaleCircleNavigator.setNormalCircleColor(getResources().getColor(R.color.gray_light));
    scaleCircleNavigator.setSelectedCircleColor(getResources().getColor(R.color.gray));

    sliderIndicator.setNavigator(scaleCircleNavigator);
    indicatorHelper = new FragmentContainerHelper(sliderIndicator);
    indicatorHelper.handlePageSelected(0);//Problem with the index here

but when i set handlePageSelected(0) the first item is not being selected but with other indexes, it works well!

photo_2017-10-10_16-22-32 photo_2017-10-10_16-22-29 photo_2017-10-10_16-22-25

Source: hackware1993/MagicIndicator