mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-09 18:48:55 +01:00
Run default Android Studio formatter on code
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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<*>?) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ class LoginCheckBoxPreference @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
// Make method public
|
||||
override public fun notifyChanged() {
|
||||
public override fun notifyChanged() {
|
||||
super.notifyChanged()
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user