-
Notifications
You must be signed in to change notification settings - Fork 30
Description
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)