diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt index 441bf35ad1..ef3b98fd9c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt @@ -194,8 +194,11 @@ class ReaderActivity : BaseRxActivity(), return } NotificationReceiver.dismissNotification(this, manga.hashCode(), Notifications.ID_NEW_CHAPTERS) - if (chapter > -1) presenter.init(manga, chapter) - else presenter.init(manga, chapterUrl) + + when(chapter> -1){ + true -> presenter.init(manga, chapter) + false -> presenter.init(manga, chapterUrl) + } } if (savedInstanceState != null) {