Skip to content
This repository was archived by the owner on Jan 2, 2021. It is now read-only.
This repository was archived by the owner on Jan 2, 2021. It is now read-only.

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

Description

@aungkhanthtoo

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:

  • Android API level: [e.g. 26]
  • Library Version: [e.g. 3.0.0]
  • Recyclerview Version [e.g. 1.0.0]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    newDescribes the issue is reported recently and not reviewed by the maintainers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions