baoyongzhang / baoyongzhang/SwipeMenuListView
isGroupSwipable is returning false but still the group is swiping
- Dominant language
- Java
- Stars
- 3.5k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
I have a list view i with parent and childs . In isGroupSwipeable i have added a condition it check if it's true then it make it swipeable if not it makes it false. At first it is working fine .But when i scroll through the list from bottom to top . Then those groups become swipeable . But the crazy part about is that when i check isGroupSwipeable for that specific group position, it is returning me false and group is swiping
val checkForSwipe = adapter?.isGroupSwipable(groupPostion)
override fun isGroupSwipable(p0: Int): Boolean {
var rem = debt.installments[p0].remainingAmount()
if (rem > 0){
return true
}
else{
return false
}
}
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names only the isGroupSwipable implementation and the ListView scrolling scenario; start by reproducing the bottom-to-top scroll while checking remainingAmount() and the reported group position. Done means explaining why a false result still permits swiping and verifying that groups with a non-positive remaining amount remain non-swipable after scrolling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100