Closed pulakdp closed 6 years ago
@pulakdp Please atttach a GIF showing that it indeed solves the issue.
Sure @srv-twry. Here is the gif after the fix
@iamareebjamal Added the TODO, have a look
Moved the TODO
Apologies! Moved TODO inside onResume where loadData is called @iamareebjamal
@iamareebjamal Kindly review and let me know if any further changes are needed
@pulakdp The solution still consists of eventbus pattern
We can accept these changes. But write a TODO, that this is a workaround and fix needs to be done in the implementation of RealmLiveData
Isn't this why we added a TODO @iamareebjamal? I understand this isn't what you want in future but your earlier instruction was to include a TODO so I did likewise. If a solution with RealmLiveData is expected at the moment then I'll have to learn about LiveData more before I come up with the solution.
The TODO is for the hook in onResume, event bus is deprecated, but I guess we can go ahead with it. Add another above the subscribe event
TODO: High Priority: Remove event bus pattern
@iamareebjamal done.
Fixes #2363
Changes: Added method onBookmarksChanged() that gets called when a bookmark is added or removed. Refactored code that loads speaker details to avoid code repetition. Created method loadData() for that purpose.