Merge pull request #234 from NoodleMage/sort

fix #99
This commit is contained in:
inorichi 2016-03-29 10:28:49 +02:00
commit c3425346b7

View file

@ -239,6 +239,9 @@ class ChaptersFragment : BaseRxFragment<ChaptersPresenter>(), ActionMode.Callbac
}
}
if (chapters.size > 0) {
if (!presenter.sortOrder()) {
chapters.reverse()
}
when (i) {
// Set correct chapters size if desired
0 -> chapters = chapters.subList(0, 1)