From 99b96d80d0a3382ec6b116ff9cc278348759fe6b Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 12 Oct 2020 16:58:48 -0400 Subject: [PATCH] Auto-formatting --- .../eu/kanade/tachiyomi/ui/browse/BrowseController.kt | 2 +- .../tachiyomi/ui/browse/extension/ExtensionTrustDialog.kt | 8 ++++---- .../extension/details/ExtensionDetailsController.kt | 2 +- .../extension/details/SourcePreferencesController.kt | 2 +- .../ui/browse/migration/manga/MigrationMangaController.kt | 8 ++++---- .../ui/browse/source/latest/LatestUpdatesController.kt | 2 +- .../java/eu/kanade/tachiyomi/ui/manga/MangaController.kt | 8 ++++---- .../ui/manga/chapter/DownloadCustomChaptersDialog.kt | 4 ++-- .../ui/manga/chapter/SetChapterSettingsDialog.kt | 2 +- .../tachiyomi/ui/manga/track/SetTrackChaptersDialog.kt | 2 +- .../ui/manga/track/SetTrackReadingDatesDialog.kt | 2 +- .../tachiyomi/ui/manga/track/SetTrackScoreDialog.kt | 2 +- .../tachiyomi/ui/manga/track/SetTrackStatusDialog.kt | 2 +- .../eu/kanade/tachiyomi/ui/manga/track/TrackController.kt | 2 +- .../kanade/tachiyomi/ui/manga/track/TrackSearchDialog.kt | 2 +- .../java/eu/kanade/tachiyomi/ui/more/AboutController.kt | 2 +- .../tachiyomi/ui/setting/SettingsBackupController.kt | 2 +- 17 files changed, 27 insertions(+), 27 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/BrowseController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/BrowseController.kt index fe0682ca80..44f242d3b3 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/BrowseController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/BrowseController.kt @@ -32,7 +32,7 @@ class BrowseController : TabbedController { constructor(toExtensions: Boolean = false) : super( - bundleOf(TO_EXTENSIONS_EXTRA to toExtensions) + bundleOf(TO_EXTENSIONS_EXTRA to toExtensions) ) @Suppress("unused") diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionTrustDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionTrustDialog.kt index 1ee6db9d86..ef82c62111 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionTrustDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionTrustDialog.kt @@ -12,10 +12,10 @@ class ExtensionTrustDialog(bundle: Bundle? = null) : DialogController(bundle) where T : Controller, T : ExtensionTrustDialog.Listener { constructor(target: T, signatureHash: String, pkgName: String) : this( - bundleOf( - SIGNATURE_KEY to signatureHash, - PKGNAME_KEY to pkgName - ) + bundleOf( + SIGNATURE_KEY to signatureHash, + PKGNAME_KEY to pkgName + ) ) { targetController = target } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/ExtensionDetailsController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/ExtensionDetailsController.kt index 2921d439e5..a4232d3478 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/ExtensionDetailsController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/ExtensionDetailsController.kt @@ -56,7 +56,7 @@ class ExtensionDetailsController(bundle: Bundle? = null) : private var preferenceScreen: PreferenceScreen? = null constructor(pkgName: String) : this( - bundleOf(PKGNAME_KEY to pkgName) + bundleOf(PKGNAME_KEY to pkgName) ) init { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/SourcePreferencesController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/SourcePreferencesController.kt index 844d956ccb..506ede973d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/SourcePreferencesController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/details/SourcePreferencesController.kt @@ -42,7 +42,7 @@ class SourcePreferencesController(bundle: Bundle? = null) : private var preferenceScreen: PreferenceScreen? = null constructor(sourceId: Long) : this( - bundleOf(SOURCE_ID to sourceId) + bundleOf(SOURCE_ID to sourceId) ) override fun inflateView(inflater: LayoutInflater, container: ViewGroup): View { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/manga/MigrationMangaController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/manga/MigrationMangaController.kt index 4e87121e5c..548208ce3a 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/manga/MigrationMangaController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/manga/MigrationMangaController.kt @@ -20,10 +20,10 @@ class MigrationMangaController : private var adapter: FlexibleAdapter>? = null constructor(sourceId: Long, sourceName: String?) : super( - bundleOf( - SOURCE_ID_EXTRA to sourceId, - SOURCE_NAME_EXTRA to sourceName - ) + bundleOf( + SOURCE_ID_EXTRA to sourceId, + SOURCE_NAME_EXTRA to sourceName + ) ) @Suppress("unused") diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/latest/LatestUpdatesController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/latest/LatestUpdatesController.kt index bc19f4c287..2c696036ea 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/latest/LatestUpdatesController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/latest/LatestUpdatesController.kt @@ -14,7 +14,7 @@ import eu.kanade.tachiyomi.ui.browse.source.browse.BrowseSourcePresenter class LatestUpdatesController(bundle: Bundle) : BrowseSourceController(bundle) { constructor(source: CatalogueSource) : this( - bundleOf(SOURCE_ID_KEY to source.id) + bundleOf(SOURCE_ID_KEY to source.id) ) override fun createPresenter(): BrowseSourcePresenter { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt index 09f1e588cb..45a0e8d51e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt @@ -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) { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/DownloadCustomChaptersDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/DownloadCustomChaptersDialog.kt index 543b3d3b7d..ffec86ec7b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/DownloadCustomChaptersDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/DownloadCustomChaptersDialog.kt @@ -26,8 +26,8 @@ class DownloadCustomChaptersDialog : 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 diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/SetChapterSettingsDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/SetChapterSettingsDialog.kt index 061e38ec16..40c1bd3bec 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/SetChapterSettingsDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/SetChapterSettingsDialog.kt @@ -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 { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackChaptersDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackChaptersDialog.kt index e2ebc70230..c5999f5c11 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackChaptersDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackChaptersDialog.kt @@ -21,7 +21,7 @@ class SetTrackChaptersDialog : 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 diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackReadingDatesDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackReadingDatesDialog.kt index 6b64e1e008..36984dd64d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackReadingDatesDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackReadingDatesDialog.kt @@ -22,7 +22,7 @@ class SetTrackReadingDatesDialog : 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 diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackScoreDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackScoreDialog.kt index cc75693698..edff52a28f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackScoreDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackScoreDialog.kt @@ -21,7 +21,7 @@ class SetTrackScoreDialog : 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 diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackStatusDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackStatusDialog.kt index f20adb3d38..7adad27355 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackStatusDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/SetTrackStatusDialog.kt @@ -19,7 +19,7 @@ class SetTrackStatusDialog : 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 diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackController.kt index 7d158775aa..aaad5d3171 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackController.kt @@ -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 } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackSearchDialog.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackSearchDialog.kt index 59b366c867..e0631e5a37 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackSearchDialog.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/track/TrackSearchDialog.kt @@ -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 diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt index add12d6564..01ff6f6304 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt @@ -185,7 +185,7 @@ class AboutController : SettingsController() { class NewUpdateDialogController(bundle: Bundle? = null) : DialogController(bundle) { constructor(body: String, url: String) : this( - bundleOf(BODY_KEY to body, URL_KEY to url) + bundleOf(BODY_KEY to body, URL_KEY to url) ) override fun onCreateDialog(savedViewState: Bundle?): Dialog { diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt index 330b63bc4e..3087f25d4d 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsBackupController.kt @@ -252,7 +252,7 @@ class SettingsBackupController : SettingsController() { class RestoreBackupDialog(bundle: Bundle? = null) : DialogController(bundle) { constructor(uri: Uri) : this( - bundleOf(KEY_URI to uri) + bundleOf(KEY_URI to uri) ) override fun onCreateDialog(savedViewState: Bundle?): Dialog {