Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Simpler setViewPager(viewPager, initialPosition) #334

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/src/com/viewpagerindicator/TabPageIndicator.java
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ public void notifyDataSetChanged() {

@Override
public void setViewPager(ViewPager view, int initialPosition) {
mSelectedTabIndex = initialPosition;
setViewPager(view);
setCurrentItem(initialPosition);
}

@Override
Expand Down