D
Deleted User
Guest
But everytime I drag a certain item in its correct position, it immediately goes to the goToScoreFragment even though the other items are still not in their correct position
Right, so think about it, the condition for calling goToScoreFragment() is that all the items need to be in their correct positions. So you need to check all the items in the list before making a decision on what to do next.
The way your code is at the moment, it will call goToScoreFragment() when it finds the first item at the correct position. That's not what you want.
Upvote
0