Run default Android Studio formatter on code

This commit is contained in:
arkon
2020-02-17 17:23:37 -05:00
parent a1fadce7c6
commit 3ecc883944
109 changed files with 640 additions and 585 deletions

View File

@@ -16,11 +16,11 @@ class DialogCheckboxView @JvmOverloads constructor(context: Context, attrs: Attr
addView(inflate(R.layout.common_dialog_with_checkbox))
}
fun setDescription(@StringRes id: Int){
fun setDescription(@StringRes id: Int) {
description.text = context.getString(id)
}
fun setOptionDescription(@StringRes id: Int){
fun setOptionDescription(@StringRes id: Int) {
checkbox_option.text = context.getString(id)
}

View File

@@ -11,7 +11,7 @@ import kotlinx.android.synthetic.main.common_view_empty.view.image_view
import kotlinx.android.synthetic.main.common_view_empty.view.text_label
class EmptyView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) :
RelativeLayout (context, attrs) {
RelativeLayout(context, attrs) {
init {
inflate(context, R.layout.common_view_empty, this)

View File

@@ -4,7 +4,7 @@ import android.view.View
import android.widget.AdapterView
import android.widget.AdapterView.OnItemSelectedListener
class IgnoreFirstSpinnerListener(private val block: (Int) -> Unit): OnItemSelectedListener {
class IgnoreFirstSpinnerListener(private val block: (Int) -> Unit) : OnItemSelectedListener {
private var firstEvent = true
@@ -19,4 +19,4 @@ class IgnoreFirstSpinnerListener(private val block: (Int) -> Unit): OnItemSelect
override fun onNothingSelected(parent: AdapterView<*>?) {
}
}
}

View File

@@ -90,7 +90,7 @@ open class SimpleNavigationView @JvmOverloads constructor(
* Header view holder.
*/
class HeaderHolder(parent: ViewGroup)
: Holder(parent.inflate(TR.layout.navigation_view_group)){
: Holder(parent.inflate(TR.layout.navigation_view_group)) {
val title: TextView = itemView.findViewById(TR.id.title)
}

View File

@@ -1,4 +1,5 @@
package eu.kanade.tachiyomi.widget
import android.widget.SeekBar
open class SimpleSeekBarListener : SeekBar.OnSeekBarChangeListener {
@@ -10,4 +11,4 @@ open class SimpleSeekBarListener : SeekBar.OnSeekBarChangeListener {
override fun onStopTrackingTouch(seekBar: SeekBar) {
}
}
}

View File

@@ -51,7 +51,7 @@ class LoginCheckBoxPreference @JvmOverloads constructor(
}
// Make method public
override public fun notifyChanged() {
public override fun notifyChanged() {
super.notifyChanged()
}

View File

@@ -23,7 +23,7 @@ class LoginPreference @JvmOverloads constructor(context: Context, attrs: Attribu
R.drawable.ic_done_green_24dp)
}
override public fun notifyChanged() {
public override fun notifyChanged() {
super.notifyChanged()
}

View File

@@ -18,11 +18,11 @@ import eu.kanade.tachiyomi.util.system.getResourceColor
class SwitchPreferenceCategory @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null)
: PreferenceCategory(
: PreferenceCategory(
context,
attrs,
R.attr.switchPreferenceCompatStyle),
CompoundButton.OnCheckedChangeListener {
CompoundButton.OnCheckedChangeListener {
private var mChecked = false