ericberman / MyFlightbookAndroid

Android client app for MyFlightbook.com
http://myflightbook.com
GNU General Public License v3.0
21 stars 8 forks source link

crash if dead activity passed to MFBUtil.Alert #99

Closed ericberman closed 6 years ago

ericberman commented 6 years ago

android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@bc07a88 is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:702) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:342) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:94) at android.app.Dialog.show(Dialog.java:337) at Model.MFBUtil.Alert(MFBUtil.java:53) at Model.MFBImageInfo.lambda$UploadPendingImage$0$MFBImageInfo(MFBImageInfo.java:730) at Model.MFBImageInfo$$Lambda$0.run(Unknown Source) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6247) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762) Unable to add window -- token android.os.BinderProxy@bc07a88 is not valid; is your activity running?Unable to add window -- token android.os.BinderProxy@bc07a88 is not valid; is your activity running?