Skip to content

Commit

Permalink
Use old tags if they match
Browse files Browse the repository at this point in the history
  • Loading branch information
Jays2Kings committed Jan 28, 2020
1 parent c745ac7 commit 872f531
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ class MangaInfoPresenter(
}

var tagsString = tags?.joinToString(", ")
if (tagsString.isNullOrBlank() && manga.currentGenres() != manga.originalGenres()) {
if ((tagsString.isNullOrBlank() && manga.currentGenres() != manga.originalGenres())
|| tagsString == manga.originalGenres()) {
manga.genre = manga.originalGenres()
changed = true
} else if (!tagsString.isNullOrBlank() && tagsString != manga.currentGenres()) {
Expand Down

0 comments on commit 872f531

Please sign in to comment.