Skip to content

Commit

Permalink
Fix the indicator refresh issues (jpardogo#33, jpardogo#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kernald committed Jan 9, 2015
1 parent 88849dd commit 94023e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion library/src/com/astuetz/PagerSlidingTabStrip.java
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,13 @@ public void onPageSelected(int position) {
private void updateSelection(int position) {
for (int i = 0; i < tabCount; ++i) {
View tv = tabsContainer.getChildAt(i);
tv.setSelected(i == position);
final boolean selected = i == position;
tv.setSelected(selected);
if (selected) {
selected(tv);
} else {
notSelected(tv);
}
}
}

Expand Down

0 comments on commit 94023e4

Please sign in to comment.