Fixup! Fix thumb retry

This commit is contained in:
tarsin committed 2023-02-20 22:44:41 +08:00
1 parent 8e8dc76c3d
commit c8a10a8b75
1 file changed
+3 -1
@@ -40,7 +40,9 @@ open class LoadImageView @JvmOverloads constructor(
private var mClipWidth = Integer.MIN_VALUE
private var mClipHeight = Integer.MIN_VALUE
private var mUrl: String? = null
private val mRetryType =
@RetryType
private val mRetryType: Int =
context.obtainStyledAttributes(attrs, R.styleable.LoadImageView, defStyleAttr, 0).run {
getInt(R.styleable.LoadImageView_retryType, 0).also { recycle() }
}