Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix onPageScrolled mSelectedTab values not equals mViewPager.getCurrentItem #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xingstarx
Copy link

fix in some devices, mSelectedTab from OnPagerListener onPageScrolled method is not equals mViewPager.getCurrentItem()

在某些设备上,mSelectedTab的值从OnPagerListener里面切换获取的,跟mViewPager的getCurrentItem()并不是一一对应的。今天用老板的设备测试的时候,的确就是这么回事,只要调用了notifyDatasetChanged就会错位,定位出来,也是这个原因,所以没必要在OnGlobal里面重新通过mViewPager取得一次mSelectedTab的值
@xingstarx xingstarx changed the title Update TabBarView.java Fix onPageScrolled mSelectedTab values not equals mViewPager.getCurrentItem Sep 5, 2016
@xingstarx
Copy link
Author

#9

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.

1 participant