Run linter

This commit is contained in:
arkon
2020-02-26 18:03:34 -05:00
parent 58ab06b4f8
commit 043e3784e8
331 changed files with 876 additions and 1075 deletions
@@ -15,9 +15,9 @@ import kotlinx.android.synthetic.main.pref_item_source.view.login
import kotlinx.android.synthetic.main.pref_item_source.view.login_frame
class LoginCheckBoxPreference @JvmOverloads constructor(
context: Context,
val source: HttpSource,
attrs: AttributeSet? = null
context: Context,
val source: HttpSource,
attrs: AttributeSet? = null
) : CheckBoxPreference(context, attrs) {
init {
@@ -54,5 +54,4 @@ class LoginCheckBoxPreference @JvmOverloads constructor(
public override fun notifyChanged() {
super.notifyChanged()
}
}
@@ -62,7 +62,6 @@ abstract class LoginDialogPreference(bundle: Bundle? = null) : DialogController(
}
})
}
}
override fun onChangeStarted(handler: ControllerChangeHandler, type: ControllerChangeType) {
@@ -79,5 +78,4 @@ abstract class LoginDialogPreference(bundle: Bundle? = null) : DialogController(
protected abstract fun checkLogin()
protected abstract fun setCredentialsOnView(view: View)
}
@@ -26,5 +26,4 @@ class LoginPreference @JvmOverloads constructor(context: Context, attrs: Attribu
public override fun notifyChanged() {
super.notifyChanged()
}
}
@@ -68,5 +68,4 @@ class SourceLoginDialog(bundle: Bundle? = null) : LoginDialogPreference(bundle)
interface Listener {
fun loginDialogClosed(source: LoginSource)
}
}
@@ -16,9 +16,10 @@ import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.util.system.getResourceColor
class SwitchPreferenceCategory @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null)
: PreferenceCategory(
context: Context,
attrs: AttributeSet? = null
) :
PreferenceCategory(
context,
attrs,
R.attr.switchPreferenceCompatStyle),
@@ -121,5 +122,4 @@ class SwitchPreferenceCategory @JvmOverloads constructor(
else
defaultValue as Boolean)
}
}
@@ -60,5 +60,4 @@ class TrackLoginDialog(bundle: Bundle? = null) : LoginDialogPreference(bundle) {
interface Listener {
fun trackLoginDialogClosed(service: TrackService)
}
}
@@ -33,5 +33,4 @@ class TrackLogoutDialog(bundle: Bundle? = null) : DialogController(bundle) {
interface Listener {
fun trackLogoutDialogClosed(service: TrackService)
}
}