From 71fc6fc257d3241a70c477d0b778bbfca23e1148 Mon Sep 17 00:00:00 2001 From: len Date: Sat, 26 Aug 2017 12:50:52 +0200 Subject: [PATCH] Revert chapter equals method --- .../eu/kanade/tachiyomi/data/database/models/ChapterImpl.kt | 5 +---- .../main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/database/models/ChapterImpl.kt b/app/src/main/java/eu/kanade/tachiyomi/data/database/models/ChapterImpl.kt index a7fd291b54..d2067abfd1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/database/models/ChapterImpl.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/database/models/ChapterImpl.kt @@ -31,10 +31,7 @@ class ChapterImpl : Chapter { if (other == null || javaClass != other.javaClass) return false val chapter = other as Chapter - // Forces updates on manga if scanlator changes. This will allow existing manga in library - // with scanlator to update. - return url == chapter.url && scanlator == chapter.scanlator - + return url == chapter.url } override fun hashCode(): Int { diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt b/app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt index e76217e09e..077e83d18b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/ChapterSourceSync.kt @@ -37,7 +37,7 @@ fun syncChaptersWithSource(db: DatabaseHelper, } } - // Chapters from the db not in the source. + // Chapters from the source not in db. val toAdd = mutableListOf() // Chapters whose metadata have changed.