mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 03:01:49 +01:00
Fix #196
This commit is contained in:
parent
16a5e6c01a
commit
b2fe9d7d4d
@ -212,10 +212,10 @@ class RecentChaptersPresenter : BasePresenter<RecentChaptersFragment>() {
|
|||||||
// Group chapters by the date they were fetched on a ordered map.
|
// Group chapters by the date they were fetched on a ordered map.
|
||||||
.flatMap { recentItems ->
|
.flatMap { recentItems ->
|
||||||
Observable.from(recentItems)
|
Observable.from(recentItems)
|
||||||
.toMultimap {
|
.toMultimap(
|
||||||
recent ->
|
{ getMapKey(it.chapter.date_fetch) },
|
||||||
(getMapKey(recent.chapter.date_fetch))
|
{ it },
|
||||||
}
|
{ TreeMap { d1, d2 -> d2.compareTo(d1) } })
|
||||||
}
|
}
|
||||||
// Add every day and all its chapters to a single list.
|
// Add every day and all its chapters to a single list.
|
||||||
.map { recentItems ->
|
.map { recentItems ->
|
||||||
|
Loading…
Reference in New Issue
Block a user