Fixed some crashes in the catalogue and the reader

This commit is contained in:
len
2016-04-27 00:23:06 +02:00
parent 4b7159648a
commit de6cc8394e
4 changed files with 138 additions and 173 deletions
@@ -78,7 +78,7 @@ abstract class BaseReader : BaseFragment() {
* Returns the active page.
*/
fun getActivePage(): Page {
return pages[currentPage]
return pages.getOrElse(currentPage) { pages[0] }
}
/**