You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.
Toasts crashed if the project is targeting Android O.
com.github.johnpersano.supertoasts.demo E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.github.johnpersano.supertoasts.demo, PID: 6077
android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:760)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:356)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:92)
at com.github.johnpersano.supertoasts.library.Toaster.displaySuperToast(Toaster.java:186)
at com.github.johnpersano.supertoasts.library.Toaster.handleMessage(Toaster.java:136)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6440)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:746)
To reproduce recompile demo with following and run on emulator
In the same position. Doesn't look like this library is going to be fixed so I switched to https://github.com/Muddz/StyleableToast. It works almost the same and is compatible with Android O.
Toasts crashed if the project is targeting Android O.
To reproduce recompile demo with following and run on emulator
The text was updated successfully, but these errors were encountered: