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

Infinite loop support #104

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Infinite loop support #104

wants to merge 2 commits into from

Conversation

tristangrichard
Copy link

Allows developers to fake the count on their adapters and tell pageindicator the real count

the getCount method can now be overridden

@@ -184,7 +184,7 @@ public void setCount(int count) {
* Return number of circle indicators
*/
public int getCount() {
return manager.indicator().getCount();
return viewPager.getAdapter().getCount();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, just checked your PR, I think here you should keep manager.indicator().getCount()

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.

None yet

2 participants