Closed tasomaniac closed 8 years ago
This PR refactors MainActivity's selected chapter handling and create a new PagerAdapter every time a chapter has changed.
For that selectedChapterId was not enough. I decided to use regular Chapter object with name and id in it. It made lots of things easier.
selectedChapterId
Chapter
Also I've moved stuff around to make it more readable at the end.
Fixes #597
This PR refactors MainActivity's selected chapter handling and create a new PagerAdapter every time a chapter has changed.
For that
selectedChapterId
was not enough. I decided to use regularChapter
object with name and id in it. It made lots of things easier.Also I've moved stuff around to make it more readable at the end.
Fixes #597