Fix the chapter count not calculated correctly

这个提交包含在:
Bradlee Speice
2015-01-18 22:36:45 -05:00
父节点 82b8564402
当前提交 34f89e5cfd

查看文件

@ -51,7 +51,7 @@ class BookAdapter(val b: Book, val prefs: BibleViewerPreferences)
val versification = b.getVersification()
val bookList = versification.getBooks()
val chapterCount = bookList.map { versification.getLastChapter(it) - 1 }.sum()
// val chapterCount = bookList.map { versification.getLastChapter(it) - 1 }.sum()
/**
* Store information needed to decode the text of a chapter
@ -117,7 +117,7 @@ class BookAdapter(val b: Book, val prefs: BibleViewerPreferences)
/**
* Get the number of chapters in the book
*/
override fun getItemCount(): Int = chapterCount
override fun getItemCount(): Int = chapterList.size()
public fun bindScrollHandler(provider: PublishSubject<BookScrollEvent>,
lM: RecyclerView.LayoutManager) {