mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-09-11 00:13:22 +02:00
Cleanup with recently read bug
This commit is contained in:
parent
130b2df89d
commit
2081457ade
@ -145,32 +145,13 @@ class RecentlyReadController : NucleusController<RecentlyReadPresenter>(),
|
||||
}
|
||||
|
||||
override fun removeHistory(manga: Manga, history: History, all: Boolean) {
|
||||
presenter.lastCount = adapter?.itemCount ?: 25
|
||||
if (all) {
|
||||
// Reset last read of chapter to 0L
|
||||
presenter.removeAllFromHistory(manga.id!!)
|
||||
/*val safeAdapter = adapter ?: return
|
||||
val items = (0 until safeAdapter.itemCount).filter {
|
||||
val item = safeAdapter.getItem(it)
|
||||
if (item is RecentlyReadItem)
|
||||
item.mch.manga.id == manga.id
|
||||
|
||||
else
|
||||
false
|
||||
}
|
||||
adapter?.removeItems(items)*/
|
||||
} else {
|
||||
// Remove all chapters belonging to manga from library
|
||||
presenter.removeFromHistory(history)
|
||||
/*val safeAdapter = adapter ?: return
|
||||
val item = (0 until safeAdapter.itemCount).find {
|
||||
val item = safeAdapter.getItem(it)
|
||||
if (item is RecentlyReadItem)
|
||||
item.mch.history == history
|
||||
|
||||
else
|
||||
false
|
||||
} ?: return
|
||||
adapter?.removeItem(item)*/
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user