Clean up some companion object usages
This commit is contained in:
+3
-5
@@ -69,9 +69,7 @@ class DownloadCustomChaptersDialog<T> : DialogController
|
||||
interface Listener {
|
||||
fun downloadCustomChapters(amount: Int)
|
||||
}
|
||||
|
||||
private companion object {
|
||||
// Key to retrieve max chapters from bundle on process death.
|
||||
const val KEY_ITEM_MAX = "DownloadCustomChaptersDialog.int.maxChapters"
|
||||
}
|
||||
}
|
||||
|
||||
// Key to retrieve max chapters from bundle on process death.
|
||||
private const val KEY_ITEM_MAX = "DownloadCustomChaptersDialog.int.maxChapters"
|
||||
|
||||
@@ -37,8 +37,6 @@ class SetChapterSettingsDialog(bundle: Bundle? = null) : DialogController(bundle
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
.create()
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val MANGA_KEY = "manga"
|
||||
}
|
||||
}
|
||||
|
||||
private const val MANGA_KEY = "manga"
|
||||
|
||||
@@ -65,8 +65,6 @@ class SetTrackChaptersDialog<T> : DialogController
|
||||
interface Listener {
|
||||
fun setChaptersRead(item: TrackItem, chaptersRead: Int)
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val KEY_ITEM_TRACK = "SetTrackChaptersDialog.item.track"
|
||||
}
|
||||
}
|
||||
|
||||
private const val KEY_ITEM_TRACK = "SetTrackChaptersDialog.item.track"
|
||||
|
||||
@@ -65,8 +65,6 @@ class SetTrackScoreDialog<T> : DialogController
|
||||
interface Listener {
|
||||
fun setScore(item: TrackItem, score: Int)
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val KEY_ITEM_TRACK = "SetTrackScoreDialog.item.track"
|
||||
}
|
||||
}
|
||||
|
||||
private const val KEY_ITEM_TRACK = "SetTrackScoreDialog.item.track"
|
||||
|
||||
@@ -54,8 +54,6 @@ class SetTrackStatusDialog<T> : DialogController
|
||||
interface Listener {
|
||||
fun setStatus(item: TrackItem, selection: Int)
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val KEY_ITEM_TRACK = "SetTrackStatusDialog.item.track"
|
||||
}
|
||||
}
|
||||
|
||||
private const val KEY_ITEM_TRACK = "SetTrackStatusDialog.item.track"
|
||||
|
||||
@@ -189,9 +189,7 @@ class TrackSearchDialog : DialogController {
|
||||
binding.message.text = message ?: binding.message.context.getString(R.string.unknown_error)
|
||||
adapter?.items = emptyList()
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val KEY_SERVICE = "service_id"
|
||||
const val KEY_CURRENT_URL = "current_url"
|
||||
}
|
||||
}
|
||||
|
||||
private const val KEY_SERVICE = "service_id"
|
||||
private const val KEY_CURRENT_URL = "current_url"
|
||||
|
||||
@@ -226,8 +226,6 @@ class TrackSheet(
|
||||
fun getSearchDialog(): TrackSearchDialog? {
|
||||
return controller.router.getControllerWithTag(TAG_SEARCH_CONTROLLER) as? TrackSearchDialog
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val TAG_SEARCH_CONTROLLER = "track_search_controller"
|
||||
}
|
||||
}
|
||||
|
||||
private const val TAG_SEARCH_CONTROLLER = "track_search_controller"
|
||||
|
||||
Reference in New Issue
Block a user