From e30b1de10041fce71083965b831684ce81538727 Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 4 Mar 2020 22:37:15 -0500 Subject: [PATCH] Linting fixes: extend AppCompat classes --- .../main/java/eu/kanade/tachiyomi/widget/NegativeSeekBar.kt | 3 ++- .../main/java/eu/kanade/tachiyomi/widget/PTSansTextView.kt | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/NegativeSeekBar.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/NegativeSeekBar.kt index 9ab0cc9c11..44587bc8e1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/NegativeSeekBar.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/NegativeSeekBar.kt @@ -4,11 +4,12 @@ import android.content.Context import android.os.Parcelable import android.util.AttributeSet import android.widget.SeekBar +import androidx.appcompat.widget.AppCompatSeekBar import eu.kanade.tachiyomi.R import kotlin.math.abs class NegativeSeekBar @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : - SeekBar(context, attrs) { + AppCompatSeekBar(context, attrs) { private var minValue: Int = 0 private var maxValue: Int = 0 diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/PTSansTextView.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/PTSansTextView.kt index 09eb9ab692..be672fde1b 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/PTSansTextView.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/PTSansTextView.kt @@ -4,12 +4,12 @@ import android.content.Context import android.graphics.Canvas import android.graphics.Typeface import android.util.AttributeSet -import android.widget.TextView +import androidx.appcompat.widget.AppCompatTextView import eu.kanade.tachiyomi.R import java.util.HashMap class PTSansTextView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : - TextView(context, attrs) { + AppCompatTextView(context, attrs) { companion object { const val PTSANS_NARROW = 0