Skip to content

Commit

Permalink
日常提交:2022-08-09.
Browse files Browse the repository at this point in the history
  • Loading branch information
walgr committed Aug 9, 2022
1 parent fc26f5e commit 10838d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 5 additions & 3 deletions app/src/main/java/com/wpf/app/quick/demo/TestFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
}

}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 10838d1

Please sign in to comment.