Skip to content

Commit

Permalink
修复调用setCurrentItem方法选中出现了两个标签都选中的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chaychan committed Feb 25, 2018
1 parent 64c7ec2 commit bcad354
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ private void resetState() {
}

public void setCurrentItem(int currentItem) {
mCurrentItem = currentItem;
mViewPager.setCurrentItem(mCurrentItem,mSmoothScroll);
mViewPager.setCurrentItem(currentItem,mSmoothScroll);
}

/**
Expand Down

0 comments on commit bcad354

Please sign in to comment.