File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
library/src/main/java/com/daimajia/slider/library/Indicators Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -444,11 +444,6 @@ private void setItemAsSelected(int position){
444
444
445
445
@ Override
446
446
public void onPageScrolled (int position , float positionOffset , int positionOffsetPixels ) {
447
- if (mItemCount == 0 ){
448
- return ;
449
- }
450
- int n = position % mItemCount ;
451
- setItemAsSelected (n - 1 );
452
447
}
453
448
454
449
public IndicatorVisibility getIndicatorVisibility (){
@@ -457,7 +452,11 @@ public IndicatorVisibility getIndicatorVisibility(){
457
452
458
453
@ Override
459
454
public void onPageSelected (int position ) {
460
-
455
+ if (mItemCount == 0 ){
456
+ return ;
457
+ }
458
+ int n = position % mItemCount ;
459
+ setItemAsSelected (n - 1 );
461
460
}
462
461
@ Override
463
462
public void onPageScrollStateChanged (int state ) {
You can’t perform that action at this time.
0 commit comments