Stop merging onto itself
This commit is contained in:
parent
198955fd5d
commit
d6d5703e39
1 changed files with 3 additions and 0 deletions
|
|
@ -544,6 +544,9 @@ class MangaInfoScreenModel(
|
|||
|
||||
return originalManga
|
||||
} else {
|
||||
if (manga.id == originalMangaId) {
|
||||
throw IllegalArgumentException(context.getString(R.string.merged_already))
|
||||
}
|
||||
var mergedManga = Manga.create()
|
||||
.copy(
|
||||
url = originalManga.url,
|
||||
|
|
|
|||
Loading…
Reference in a new issue