crux-bphc / CMS-Android

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

Improve module read/unread logic #320

Closed abhijeetviswa closed 3 years ago

abhijeetviswa commented 3 years ago

Use batch updates to mark items as read/unread instead of individual updating database. This makes the 'Mark all as read' action from MyCoursesFragment near instantaneous when you everything in every course as unread.

Also refactored 'markModuleAsReadOrUnread' method.