Auto-formatting

This commit is contained in:
arkon
2020-10-12 16:58:48 -04:00
parent 67418ba853
commit 99b96d80d0
17 changed files with 27 additions and 27 deletions
@@ -99,10 +99,10 @@ class MangaController :
DeleteChaptersDialog.Listener {
constructor(manga: Manga?, fromSource: Boolean = false) : super(
bundleOf(
MANGA_EXTRA to (manga?.id ?: 0),
FROM_SOURCE_EXTRA to fromSource
)
bundleOf(
MANGA_EXTRA to (manga?.id ?: 0),
FROM_SOURCE_EXTRA to fromSource
)
) {
this.manga = manga
if (manga != null) {
@@ -26,8 +26,8 @@ class DownloadCustomChaptersDialog<T> : DialogController
* @param maxChapters maximal number of chapters that user can download.
*/
constructor(target: T, maxChapters: Int) : super(
// Add maximum number of chapters to download value to bundle.
bundleOf(KEY_ITEM_MAX to maxChapters)
// Add maximum number of chapters to download value to bundle.
bundleOf(KEY_ITEM_MAX to maxChapters)
) {
targetController = target
this.maxChapters = maxChapters
@@ -15,7 +15,7 @@ import eu.kanade.tachiyomi.widget.DialogCheckboxView
class SetChapterSettingsDialog(bundle: Bundle? = null) : DialogController(bundle) {
constructor(manga: Manga) : this(
bundleOf(MANGA_KEY to manga)
bundleOf(MANGA_KEY to manga)
)
override fun onCreateDialog(savedViewState: Bundle?): Dialog {
@@ -21,7 +21,7 @@ class SetTrackChaptersDialog<T> : DialogController
private val item: TrackItem
constructor(target: T, item: TrackItem) : super(
bundleOf(KEY_ITEM_TRACK to item.track)
bundleOf(KEY_ITEM_TRACK to item.track)
) {
targetController = target
this.item = item
@@ -22,7 +22,7 @@ class SetTrackReadingDatesDialog<T> : DialogController
private val dateToUpdate: ReadingDate
constructor(target: T, dateToUpdate: ReadingDate, item: TrackItem) : super(
bundleOf(KEY_ITEM_TRACK to item.track)
bundleOf(KEY_ITEM_TRACK to item.track)
) {
targetController = target
this.item = item
@@ -21,7 +21,7 @@ class SetTrackScoreDialog<T> : DialogController
private val item: TrackItem
constructor(target: T, item: TrackItem) : super(
bundleOf(KEY_ITEM_TRACK to item.track)
bundleOf(KEY_ITEM_TRACK to item.track)
) {
targetController = target
this.item = item
@@ -19,7 +19,7 @@ class SetTrackStatusDialog<T> : DialogController
private val item: TrackItem
constructor(target: T, item: TrackItem) : super(
bundleOf(KEY_ITEM_TRACK to item.track)
bundleOf(KEY_ITEM_TRACK to item.track)
) {
targetController = target
this.item = item
@@ -31,7 +31,7 @@ class TrackController :
SetTrackReadingDatesDialog.Listener {
constructor(manga: Manga?) : super(
bundleOf(MANGA_EXTRA to (manga?.id ?: 0))
bundleOf(MANGA_EXTRA to (manga?.id ?: 0))
) {
this.manga = manga
}
@@ -42,7 +42,7 @@ class TrackSearchDialog : DialogController {
get() = targetController as TrackController
constructor(target: TrackController, service: TrackService) : super(
bundleOf(KEY_SERVICE to service.id)
bundleOf(KEY_SERVICE to service.id)
) {
targetController = target
this.service = service