Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

ClassCastException #1

Description

@1ka

When using a DialogFragment (AppCompatDialogFragment) I see this crash when the layout is inflated.

If I get time, I might submit a fix and pull request, but have noted it here until then.

Caused by: java.lang.ClassCastException: android.view.ContextThemeWrapper cannot be cast to android.app.Activity
at com.pchmn.materialchips.ChipsInput.init(ChipsInput.java:144)
at com.pchmn.materialchips.ChipsInput.<init>(ChipsInput.java:78)
at java.lang.reflect.Constructor.newInstance0(Native Method) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions