mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-14 04:15:09 +01:00
replace same line if else to when for readability
This commit is contained in:
parent
7399c87601
commit
3240260a91
@ -194,8 +194,11 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>(),
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
NotificationReceiver.dismissNotification(this, manga.hashCode(), Notifications.ID_NEW_CHAPTERS)
|
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) {
|
if (savedInstanceState != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user