mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-10 20:57:24 +01:00
Linting fixes: extend AppCompat classes
This commit is contained in:
parent
6940ad3fd9
commit
e30b1de100
@ -4,11 +4,12 @@ import android.content.Context
|
|||||||
import android.os.Parcelable
|
import android.os.Parcelable
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
import android.widget.SeekBar
|
import android.widget.SeekBar
|
||||||
|
import androidx.appcompat.widget.AppCompatSeekBar
|
||||||
import eu.kanade.tachiyomi.R
|
import eu.kanade.tachiyomi.R
|
||||||
import kotlin.math.abs
|
import kotlin.math.abs
|
||||||
|
|
||||||
class NegativeSeekBar @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) :
|
class NegativeSeekBar @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) :
|
||||||
SeekBar(context, attrs) {
|
AppCompatSeekBar(context, attrs) {
|
||||||
|
|
||||||
private var minValue: Int = 0
|
private var minValue: Int = 0
|
||||||
private var maxValue: Int = 0
|
private var maxValue: Int = 0
|
||||||
|
@ -4,12 +4,12 @@ import android.content.Context
|
|||||||
import android.graphics.Canvas
|
import android.graphics.Canvas
|
||||||
import android.graphics.Typeface
|
import android.graphics.Typeface
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
import android.widget.TextView
|
import androidx.appcompat.widget.AppCompatTextView
|
||||||
import eu.kanade.tachiyomi.R
|
import eu.kanade.tachiyomi.R
|
||||||
import java.util.HashMap
|
import java.util.HashMap
|
||||||
|
|
||||||
class PTSansTextView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) :
|
class PTSansTextView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) :
|
||||||
TextView(context, attrs) {
|
AppCompatTextView(context, attrs) {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val PTSANS_NARROW = 0
|
const val PTSANS_NARROW = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user