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

View File

@ -32,7 +32,7 @@ class BrowseController :
TabbedController { TabbedController {
constructor(toExtensions: Boolean = false) : super( constructor(toExtensions: Boolean = false) : super(
bundleOf(TO_EXTENSIONS_EXTRA to toExtensions) bundleOf(TO_EXTENSIONS_EXTRA to toExtensions)
) )
@Suppress("unused") @Suppress("unused")

View File

@ -12,10 +12,10 @@ class ExtensionTrustDialog<T>(bundle: Bundle? = null) : DialogController(bundle)
where T : Controller, T : ExtensionTrustDialog.Listener { where T : Controller, T : ExtensionTrustDialog.Listener {
constructor(target: T, signatureHash: String, pkgName: String) : this( constructor(target: T, signatureHash: String, pkgName: String) : this(
bundleOf( bundleOf(
SIGNATURE_KEY to signatureHash, SIGNATURE_KEY to signatureHash,
PKGNAME_KEY to pkgName PKGNAME_KEY to pkgName
) )
) { ) {
targetController = target targetController = target
} }

View File

@ -56,7 +56,7 @@ class ExtensionDetailsController(bundle: Bundle? = null) :
private var preferenceScreen: PreferenceScreen? = null private var preferenceScreen: PreferenceScreen? = null
constructor(pkgName: String) : this( constructor(pkgName: String) : this(
bundleOf(PKGNAME_KEY to pkgName) bundleOf(PKGNAME_KEY to pkgName)
) )
init { init {

View File

@ -42,7 +42,7 @@ class SourcePreferencesController(bundle: Bundle? = null) :
private var preferenceScreen: PreferenceScreen? = null private var preferenceScreen: PreferenceScreen? = null
constructor(sourceId: Long) : this( constructor(sourceId: Long) : this(
bundleOf(SOURCE_ID to sourceId) bundleOf(SOURCE_ID to sourceId)
) )
override fun inflateView(inflater: LayoutInflater, container: ViewGroup): View { override fun inflateView(inflater: LayoutInflater, container: ViewGroup): View {

View File

@ -20,10 +20,10 @@ class MigrationMangaController :
private var adapter: FlexibleAdapter<IFlexible<*>>? = null private var adapter: FlexibleAdapter<IFlexible<*>>? = null
constructor(sourceId: Long, sourceName: String?) : super( constructor(sourceId: Long, sourceName: String?) : super(
bundleOf( bundleOf(
SOURCE_ID_EXTRA to sourceId, SOURCE_ID_EXTRA to sourceId,
SOURCE_NAME_EXTRA to sourceName SOURCE_NAME_EXTRA to sourceName
) )
) )
@Suppress("unused") @Suppress("unused")

View File

@ -14,7 +14,7 @@ import eu.kanade.tachiyomi.ui.browse.source.browse.BrowseSourcePresenter
class LatestUpdatesController(bundle: Bundle) : BrowseSourceController(bundle) { class LatestUpdatesController(bundle: Bundle) : BrowseSourceController(bundle) {
constructor(source: CatalogueSource) : this( constructor(source: CatalogueSource) : this(
bundleOf(SOURCE_ID_KEY to source.id) bundleOf(SOURCE_ID_KEY to source.id)
) )
override fun createPresenter(): BrowseSourcePresenter { override fun createPresenter(): BrowseSourcePresenter {

View File

@ -99,10 +99,10 @@ class MangaController :
DeleteChaptersDialog.Listener { DeleteChaptersDialog.Listener {
constructor(manga: Manga?, fromSource: Boolean = false) : super( constructor(manga: Manga?, fromSource: Boolean = false) : super(
bundleOf( bundleOf(
MANGA_EXTRA to (manga?.id ?: 0), MANGA_EXTRA to (manga?.id ?: 0),
FROM_SOURCE_EXTRA to fromSource FROM_SOURCE_EXTRA to fromSource
) )
) { ) {
this.manga = manga this.manga = manga
if (manga != null) { if (manga != null) {

View File

@ -26,8 +26,8 @@ class DownloadCustomChaptersDialog<T> : DialogController
* @param maxChapters maximal number of chapters that user can download. * @param maxChapters maximal number of chapters that user can download.
*/ */
constructor(target: T, maxChapters: Int) : super( constructor(target: T, maxChapters: Int) : super(
// Add maximum number of chapters to download value to bundle. // Add maximum number of chapters to download value to bundle.
bundleOf(KEY_ITEM_MAX to maxChapters) bundleOf(KEY_ITEM_MAX to maxChapters)
) { ) {
targetController = target targetController = target
this.maxChapters = maxChapters this.maxChapters = maxChapters

View File

@ -15,7 +15,7 @@ import eu.kanade.tachiyomi.widget.DialogCheckboxView
class SetChapterSettingsDialog(bundle: Bundle? = null) : DialogController(bundle) { class SetChapterSettingsDialog(bundle: Bundle? = null) : DialogController(bundle) {
constructor(manga: Manga) : this( constructor(manga: Manga) : this(
bundleOf(MANGA_KEY to manga) bundleOf(MANGA_KEY to manga)
) )
override fun onCreateDialog(savedViewState: Bundle?): Dialog { override fun onCreateDialog(savedViewState: Bundle?): Dialog {

View File

@ -21,7 +21,7 @@ class SetTrackChaptersDialog<T> : DialogController
private val item: TrackItem private val item: TrackItem
constructor(target: T, item: TrackItem) : super( constructor(target: T, item: TrackItem) : super(
bundleOf(KEY_ITEM_TRACK to item.track) bundleOf(KEY_ITEM_TRACK to item.track)
) { ) {
targetController = target targetController = target
this.item = item this.item = item

View File

@ -22,7 +22,7 @@ class SetTrackReadingDatesDialog<T> : DialogController
private val dateToUpdate: ReadingDate private val dateToUpdate: ReadingDate
constructor(target: T, dateToUpdate: ReadingDate, item: TrackItem) : super( constructor(target: T, dateToUpdate: ReadingDate, item: TrackItem) : super(
bundleOf(KEY_ITEM_TRACK to item.track) bundleOf(KEY_ITEM_TRACK to item.track)
) { ) {
targetController = target targetController = target
this.item = item this.item = item

View File

@ -21,7 +21,7 @@ class SetTrackScoreDialog<T> : DialogController
private val item: TrackItem private val item: TrackItem
constructor(target: T, item: TrackItem) : super( constructor(target: T, item: TrackItem) : super(
bundleOf(KEY_ITEM_TRACK to item.track) bundleOf(KEY_ITEM_TRACK to item.track)
) { ) {
targetController = target targetController = target
this.item = item this.item = item

View File

@ -19,7 +19,7 @@ class SetTrackStatusDialog<T> : DialogController
private val item: TrackItem private val item: TrackItem
constructor(target: T, item: TrackItem) : super( constructor(target: T, item: TrackItem) : super(
bundleOf(KEY_ITEM_TRACK to item.track) bundleOf(KEY_ITEM_TRACK to item.track)
) { ) {
targetController = target targetController = target
this.item = item this.item = item

View File

@ -31,7 +31,7 @@ class TrackController :
SetTrackReadingDatesDialog.Listener { SetTrackReadingDatesDialog.Listener {
constructor(manga: Manga?) : super( constructor(manga: Manga?) : super(
bundleOf(MANGA_EXTRA to (manga?.id ?: 0)) bundleOf(MANGA_EXTRA to (manga?.id ?: 0))
) { ) {
this.manga = manga this.manga = manga
} }

View File

@ -42,7 +42,7 @@ class TrackSearchDialog : DialogController {
get() = targetController as TrackController get() = targetController as TrackController
constructor(target: TrackController, service: TrackService) : super( constructor(target: TrackController, service: TrackService) : super(
bundleOf(KEY_SERVICE to service.id) bundleOf(KEY_SERVICE to service.id)
) { ) {
targetController = target targetController = target
this.service = service this.service = service

View File

@ -185,7 +185,7 @@ class AboutController : SettingsController() {
class NewUpdateDialogController(bundle: Bundle? = null) : DialogController(bundle) { class NewUpdateDialogController(bundle: Bundle? = null) : DialogController(bundle) {
constructor(body: String, url: String) : this( 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 { override fun onCreateDialog(savedViewState: Bundle?): Dialog {

View File

@ -252,7 +252,7 @@ class SettingsBackupController : SettingsController() {
class RestoreBackupDialog(bundle: Bundle? = null) : DialogController(bundle) { class RestoreBackupDialog(bundle: Bundle? = null) : DialogController(bundle) {
constructor(uri: Uri) : this( constructor(uri: Uri) : this(
bundleOf(KEY_URI to uri) bundleOf(KEY_URI to uri)
) )
override fun onCreateDialog(savedViewState: Bundle?): Dialog { override fun onCreateDialog(savedViewState: Bundle?): Dialog {