Fix reappearing indicator in the History tab (#6105)

This commit is contained in:
Midyan Hamdoun 2021-10-16 05:14:45 +03:00 committed by GitHub
parent 55a3094a65
commit 2a1bb3dc27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ class HistoryController :
* @param mangaHistory list of manga history
*/
fun onNextManga(mangaHistory: List<HistoryItem>, cleanBatch: Boolean = false) {
if (adapter?.itemCount ?: 0 == 0 || cleanBatch) {
if (adapter?.itemCount ?: 0 == 0) {
resetProgressItem()
}
if (cleanBatch) {