Skip to content

Fix "Invalid indicator position"#51

Open
rt1shnik wants to merge 1 commit intonshmura:masterfrom
rt1shnik:fix_invelid_position
Open

Fix "Invalid indicator position"#51
rt1shnik wants to merge 1 commit intonshmura:masterfrom
rt1shnik:fix_invelid_position

Conversation

@rt1shnik
Copy link
Copy Markdown

Sometimes when I change position of ViewPager I see that current tab at RecyclerTabLayout stay the same. I've figure out after some debugging where is problem.
See at method updateCurrentIndicatorPosition. This method don't change adapter's indicatorPosition if dx is 0. So RecyclerTabLayout's position and ViewPager's position do not match. My commit fix this issue. I am comparing not only dx but position to be know we need call notifyDataSetChanged.

Closes #49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid indicator position

1 participant