Skip to content

Application stops when loading a dialog with custom view for the second time #65

@fparrav

Description

@fparrav
  • I have verified there are no duplicate active or recent bugs, questions, or requests.
  • I have verified that I am using the latest version of MaterialStyledDialogs.
  • I have given my issue a non-generic title.
  • I have read over the README and Wiki (before asking questions on how to do something).
Details
  • MaterialStyledDialogs version: 2.1
  • Device OS version: 7.1.1
  • Device Manufacturer: HDM
  • Device Name: NOKIA2
Reproduction Steps

1.I add a CustomView that contains 2 ImageButton
2. Then inflate the layout in the activity
3.Then I discard the dialogue that was invoked from a floacting action button
4. I'm invoking the dialogue again

Expected Result

Show the dialog box again

Actual Result

Application crashes with the message: java.lang.IllegalStateException: The specified child already has a parent.You must call removeView () on the child's parent first. in the logcat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions