mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
cleanup MangaDetailsPresenter
This commit is contained in:
parent
e0be6e57b1
commit
c1f95a3a36
1 changed files with 1 additions and 8 deletions
|
@ -694,13 +694,6 @@ class MangaDetailsPresenter(
|
|||
}
|
||||
}
|
||||
|
||||
fun setFavorite(favorite: Boolean) {
|
||||
if (manga.favorite == favorite) {
|
||||
return
|
||||
}
|
||||
toggleFavorite()
|
||||
}
|
||||
|
||||
override fun onUpdateManga(manga: Manga?) {
|
||||
if (manga?.id == this.manga.id) {
|
||||
fetchChapters()
|
||||
|
@ -719,7 +712,7 @@ class MangaDetailsPresenter(
|
|||
withUIContext {
|
||||
controller?.shareManga(file)
|
||||
}
|
||||
} catch (e: java.lang.Exception) {
|
||||
} catch (_: java.lang.Exception) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue