Skip to content
New issue

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

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

Already on GitHub? # 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()

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants