WindowLeaked Exception
Opened this issue · 0 comments
jasonni commented
I got an exception because the activity already be destroyed but dialog still showing,
Could you provide hide dialog API?
E/WindowManager: android.view.WindowLeaked: Activity has leaked window DecorView@411d6b4[] that was originally added here
at android.view.ViewRootImpl.<init>(ViewRootImpl.java:418)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:331)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
at android.app.Dialog.show(Dialog.java:322)
at android.support.v7.app.AlertDialog$Builder.show(AlertDialog.java:955)
at com.kobakei.ratethisapp.RateThisApp.showRateDialog(RateThisApp.java:255)
at com.kobakei.ratethisapp.RateThisApp.showRateDialog(RateThisApp.java:170)