Linting fixes: extend AppCompat classes

This commit is contained in:
arkon 2020-03-04 22:37:15 -05:00
parent 6940ad3fd9
commit e30b1de100
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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