Browse Source

add poc2.0需求

lihao1 3 years ago
parent
commit
36c7bf33a7

+ 1 - 1
demo/src/main/java/com/sybotan/android/demo/activities/EquipDetailActivity.kt

@@ -294,7 +294,7 @@ class EquipDetailActivity : BaseActivity(), View.OnTouchListener {
                     val hashMap = params as HashMap<String, Any>
                     val parent = hashMap.get("parent") as ArrayList<RelConfigEntity>
                     val children = hashMap.get("child") as MutableList<List<RelationEntity>>
-                    val relAdapter = RelationExpandAdapter(this, parent, children)
+                    val relAdapter = RelationExpandAdapter(this@EquipDetailActivity, parent, children)
                     relAdapter.setOnAdd(object : RelationExpandAdapter.AddRel {
                         override fun onAdd(group: RelConfigEntity) {
                             this@EquipDetailActivity.groupRelConfigEntity = group

+ 1 - 1
demo/src/main/java/com/sybotan/android/demo/adapter/RelationExpandAdapter.kt

@@ -16,7 +16,7 @@ import java.lang.StringBuilder
 class RelationExpandAdapter(
     context: Context,
     groups: List<RelConfigEntity>,
-    items: List<List<RelationEntity>>
+    items: MutableList<List<RelationEntity>>
 ) : BaseExpandableListAdapter() {
     private var addRel: AddRel? = null
     private var deleteRel: DeleteRel? = null