Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

problem in get count #39

Open
Mahdiazadbar opened this issue Mar 8, 2017 · 1 comment
Open

problem in get count #39

Mahdiazadbar opened this issue Mar 8, 2017 · 1 comment

Comments

@Mahdiazadbar
Copy link

Mahdiazadbar commented Mar 8, 2017

hi. great library.
i have a problem for getCount of item after swipe and remove item of view!!
after remove view count of getCount do not decrease?
and when i remove from my list two item of adapter remove. for example if i have 6 item after remove 3 item of my list in swipeRight or left onEmpty method call!!!
how can i fix this bug?

@D330
Copy link

D330 commented Jan 12, 2018

you need to get itemCount? No, SwipeStack not decrease it, he just work with view. You can get real itemCount with stackAdapter.getItemCount() - swipeStack.getCurrentPosition

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants