crux-bphc / CMS-Android

A custom Moodle app for the students of BITS Pilani, Hyderabad Campus.
MIT License
28 stars 39 forks source link

Selected course and option action of courses bottomsheet do not match #268

Closed VaishnaviShri closed 3 years ago

VaishnaviShri commented 3 years ago

When an option from more options bottom sheet is selected for a particular course, the option that was chosen for the previously selected course gets executed. However, it works fine for the first course that is selected after the app launches.

If I select course A (select the more options ellipses) after starting the app, the more options bottom sheet for A will show, and if I select the option 'mark all as read' contents of A will be marked as read (option id will be 1). After that if I select course B and try to chose any option, say 'mark as favourite' there won't be any change (option id will be null). On selecting more options for course C, the course C will be marked as favourite (option id = 2, which was selected for B) and then the bottom sheet fragment will show up.