Skip to content

Current status of alert #10

@Drabu

Description

@Drabu

How do I know if the status bard alert is already attached to the window or basically get the current status of the alert to see if it is attached/removed/ dismissing etc? Couldn't find the same in the documentation.

Fatal Exception: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
at android.view.ViewGroup.addViewInner(ViewGroup.java:5341)
at android.view.ViewGroup.addView(ViewGroup.java:5162)
at android.view.ViewGroup.addView(ViewGroup.java:5102)
at android.view.ViewGroup.addView(ViewGroup.java:5074)
at com.fede987.statusbaralert.StatusBarAlert$showInternal$2.run(StatusBarAlert.kt:189)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8381)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

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