diff --git a/QuickBind/src/main/java/com/wpf/app/quickbind/plugins/BindViewPlugin.kt b/QuickBind/src/main/java/com/wpf/app/quickbind/plugins/BindViewPlugin.kt index 949bb7a7..dd0f110e 100644 --- a/QuickBind/src/main/java/com/wpf/app/quickbind/plugins/BindViewPlugin.kt +++ b/QuickBind/src/main/java/com/wpf/app/quickbind/plugins/BindViewPlugin.kt @@ -18,7 +18,7 @@ class BindViewPlugin : BasePlugin { try { val findViewA = field.getAnnotation(BindView::class.java) ?: return false field.isAccessible = true - if (field[getRealObj(obj, viewModel)] != null) return true +// if (field[getRealObj(obj, viewModel)] != null) return true field[getRealObj(obj, viewModel)] = findView(obj, findViewA.value) return true } catch (e: Exception) { diff --git a/app/src/main/java/com/wpf/app/quick/demo/TestFragment.kt b/app/src/main/java/com/wpf/app/quick/demo/TestFragment.kt index 071c39c1..39d8be7d 100644 --- a/app/src/main/java/com/wpf/app/quick/demo/TestFragment.kt +++ b/app/src/main/java/com/wpf/app/quick/demo/TestFragment.kt @@ -3,6 +3,7 @@ package com.wpf.app.quick.demo import android.annotation.SuppressLint import android.util.Log import android.view.View +import android.widget.TextView import com.wpf.app.quick.activity.QuickFragment import com.wpf.app.quick.activity.QuickViewModelFragment import com.wpf.app.quick.annotations.BindView @@ -15,11 +16,12 @@ import com.wpf.app.quick.widgets.recyclerview.QuickRecyclerView */ class TestFragment: QuickFragment(R.layout.activity_recyclerview_test) { @SuppressLint("StaticFieldLeak") - @BindView(R.id.list) - var list: QuickRecyclerView? = null + @BindView(R.id.btnClean) + var btnClean: TextView? = null override fun initView(view: View?) { - Log.e("TestFragment", "id:${list}---baseview:${view}") + Log.e("TestFragment", "id:${btnClean}---baseview:${view}") + btnClean?.text = "123123" } } diff --git a/gradle.properties b/gradle.properties index 8fe9d66b..1203d398 100755 --- a/gradle.properties +++ b/gradle.properties @@ -28,7 +28,7 @@ android.nonTransitiveRClass=true IS_REMOTE=true IS_ONLY_PLUGIN=false GROUP=com.wpf.app.quick -VERSION_NAME=0.2.14 +VERSION_NAME=0.2.15 POM_DESCRIPTION=Quick Android.