Apply suggestions.
This commit is contained in:
committed by
Koitharu
parent
9a815f28fa
commit
46ab5af905
@@ -405,7 +405,7 @@ class ReaderActivity :
|
||||
.setAction(ACTION_MANGA_READ)
|
||||
|
||||
fun manga(manga: Manga) = apply {
|
||||
intent.putExtra(MangaIntent.KEY_MANGA, ParcelableManga(manga))
|
||||
intent.putExtra(MangaIntent.KEY_MANGA, ParcelableManga(manga, withChapters = true))
|
||||
}
|
||||
|
||||
fun mangaId(mangaId: Long) = apply {
|
||||
|
||||
@@ -152,7 +152,7 @@ class ColorFilterConfigActivity :
|
||||
|
||||
fun newIntent(context: Context, manga: Manga, page: MangaPage) =
|
||||
Intent(context, ColorFilterConfigActivity::class.java)
|
||||
.putExtra(EXTRA_MANGA, ParcelableManga(manga, false))
|
||||
.putExtra(EXTRA_MANGA, ParcelableManga(manga, withChapters = false))
|
||||
.putExtra(EXTRA_PAGES, ParcelableMangaPage(page))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,7 +192,7 @@ class PagesThumbnailsSheet :
|
||||
|
||||
fun show(fm: FragmentManager, manga: Manga, chapterId: Long, currentPage: Int = -1) {
|
||||
PagesThumbnailsSheet().withArgs(3) {
|
||||
putParcelable(ARG_MANGA, ParcelableManga(manga))
|
||||
putParcelable(ARG_MANGA, ParcelableManga(manga, withChapters = true))
|
||||
putLong(ARG_CHAPTER_ID, chapterId)
|
||||
putInt(ARG_CURRENT_PAGE, currentPage)
|
||||
}.showDistinct(fm, TAG)
|
||||
|
||||
Reference in New Issue
Block a user