diff --git a/app/src/main/java/io/legado/app/ui/widget/SearchView.kt b/app/src/main/java/io/legado/app/ui/widget/SearchView.kt index 765a0a580..6d340c6d7 100644 --- a/app/src/main/java/io/legado/app/ui/widget/SearchView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/SearchView.kt @@ -20,12 +20,12 @@ class SearchView : SearchView { private var textView: TextView? = null constructor( - context: Context?, + context: Context, attrs: AttributeSet? = null ) : super(context, attrs) constructor( - context: Context?, + context: Context, attrs: AttributeSet?, defStyleAttr: Int ) : super(context, attrs, defStyleAttr) diff --git a/app/src/main/java/io/legado/app/ui/widget/text/MultilineTextView.kt b/app/src/main/java/io/legado/app/ui/widget/text/MultilineTextView.kt index 839ca59bd..56e36f07d 100644 --- a/app/src/main/java/io/legado/app/ui/widget/text/MultilineTextView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/text/MultilineTextView.kt @@ -5,7 +5,7 @@ import android.graphics.Canvas import android.util.AttributeSet import androidx.appcompat.widget.AppCompatTextView -class MultilineTextView(context: Context?, attrs: AttributeSet?) : +class MultilineTextView(context: Context, attrs: AttributeSet?) : AppCompatTextView(context, attrs) { override fun onDraw(canvas: Canvas?) { diff --git a/app/src/main/java/io/legado/app/ui/widget/text/ScrollTextView.kt b/app/src/main/java/io/legado/app/ui/widget/text/ScrollTextView.kt index d0b579cd4..4a9da6e0f 100644 --- a/app/src/main/java/io/legado/app/ui/widget/text/ScrollTextView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/text/ScrollTextView.kt @@ -6,7 +6,7 @@ import android.util.AttributeSet import android.view.MotionEvent import androidx.appcompat.widget.AppCompatTextView -class ScrollTextView(context: Context?, attrs: AttributeSet?) : AppCompatTextView(context, attrs) { +class ScrollTextView(context: Context, attrs: AttributeSet?) : AppCompatTextView(context, attrs) { //滑动距离的最大边界 private var mOffsetHeight = 0