DevAhamed / MultiViewAdapter

Easily create complex recyclerview adapters in android
https://devahamed.github.io/MultiViewAdapter
Apache License 2.0
818 stars 148 forks source link

TreeSection.getChild(0) crashes! This actually return an item section. #119

Open aungkhanthtoo opened 4 years ago

aungkhanthtoo commented 4 years ago

java.lang.ClassCastException: mva3.adapter.ItemSection cannot be cast to mva3.adapter.TreeSection at mva3.adapter.TreeSection.getChild(TreeSection.java:76) at dev.ahamed.mva.sample.view.nested.NestedSectionFragment$1.onDelete(NestedSectionFragment.java:37) at dev.ahamed.mva.sample.view.nested.CommentBinder.lambda$initViewHolder$0(CommentBinder.java:28) at dev.ahamed.mva.sample.view.nested.-$$Lambda$CommentBinder$BL6S8bj_RCaBZ4fWZK0Huo3p0eI.onClick(Unknown Source:4) at android.view.View.performClick(View.java:6320) at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:932) at android.view.View$PerformClick.run(View.java:24980) at android.os.Handler.handleCallback(Handler.java:794) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:176) at android.app.ActivityThread.main(ActivityThread.java:6662) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873) Please complete the following information: