From f255d38073bb115196a56cd0a38b3ba3172000bf Mon Sep 17 00:00:00 2001 From: tangwanchao <18284228392@163.com> Date: Mon, 26 Sep 2022 11:32:52 +0800 Subject: [PATCH] bugfix --- .../java/me/twc/source/observer/widget/SourceObserverView2.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/observer/src/main/java/me/twc/source/observer/widget/SourceObserverView2.kt b/observer/src/main/java/me/twc/source/observer/widget/SourceObserverView2.kt index 3afaf6c..c6c6880 100644 --- a/observer/src/main/java/me/twc/source/observer/widget/SourceObserverView2.kt +++ b/observer/src/main/java/me/twc/source/observer/widget/SourceObserverView2.kt @@ -75,7 +75,7 @@ open class SourceObserverView2 @JvmOverloads constructor( if (mErrorLayout == null) { mErrorLayout = mLayoutInflater.inflate(getErrorLayoutRes(), this, false) mErrorLayout!!.setBackgroundColor(mErrorBackground) - mErrorLayout!!.setOnClickListener { + mErrorLayout!!.findViewById(R.id.tv_network_error_reload).setOnClickListener { mReloadFun?.invoke() } addView(mErrorLayout)