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

Bug: When I use addOnPageChangeListener instead setOnPageChangeListener, it will lead to some unpredictable problems. #30

Open
liyujiang-gzu opened this issue Jan 26, 2016 · 0 comments

Comments

@liyujiang-gzu
Copy link

When I use addOnPageChangeListener instead setOnPageChangeListener, it will lead to some unpredictable problems. Add the following code to fix it in LoopViewPager::
【当我使用addOnPageChangeListener代替setOnPageChangeListener,这将导致一些不可预知的问题。在LoopViewPager中添加以下代码作简单的修复:】

    @Deprecated
    @Override
    public void addOnPageChangeListener(OnPageChangeListener listener) {
        // only support one listener, use setOnPageChangeListener instead
        mOuterPageChangeListener = listener;
    }
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

No branches or pull requests

1 participant