Closed VaishnaviShri closed 3 years ago
Just went through the commit history. I introduced this bug in 0e58e235de44f929da545a67464e2d7328095854
when migrating to Kotlin. Good job spotting and fixing it.
Ideally, we should just rewrite this entire fragment+adapter so that it's the fragment that modifies the list while the adapter simply accesses it. Or possibly have only one List representing the list of courses. Two different lists that are supposed to serve the same purpose but are out-of-sync with each other will cause subtle bugs like these.
@VaishnaviShri Go ahead and merge this in.
Changed the download course function to use the courses list of the Adapter since it is updated after sorting, alphabetically and according to favourite status.
Fixes #331