{"action":"created","issue":{"url":"https://api.github.com/repos/michaelye/EasyDialog/issues/3","labels_url":"https://api.github.com/repos/michaelye/EasyDialog/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/michaelye/EasyDialog/issues/3/comments","events_url":"https://api.github.com/repos/michaelye/EasyDialog/issues/3/events","html_url":"https://github.com/michaelye/EasyDialog/issues/3","id":111648265,"number":3,"title":"Screen rotation","user":{"login":"Anth06ny","id":6651017,"avatar_url":"https://avatars.githubusercontent.com/u/6651017?v=3","gravatar_id":"","url":"https://api.github.com/users/Anth06ny","html_url":"https://github.com/Anth06ny","followers_url":"https://api.github.com/users/Anth06ny/followers","following_url":"https://api.github.com/users/Anth06ny/following{/other_user}","gists_url":"https://api.github.com/users/Anth06ny/gists{/gist_id}","starred_url":"https://api.github.com/users/Anth06ny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anth06ny/subscriptions","organizations_url":"https://api.github.com/users/Anth06ny/orgs","repos_url":"https://api.github.com/users/Anth06ny/repos","events_url":"https://api.github.com/users/Anth06ny/events{/privacy}","received_events_url":"https://api.github.com/users/Anth06ny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-15T15:54:51Z","updated_at":"2015-10-16T08:59:36Z","closed_at":null,"body":"Hi, \r\n\r\nthank you for your library.\r\nI have a problem with your dialog when activity recreated (for exemple during screen rotation).\r\nI have IllegalArgumentException.\r\n\r\nI call \"EasyDialog.dismiss()\" method on \"Activity.onStop()\" and if I remove this instruction it's works.\r\nHow can I close dialog when I left the screen ?\r\n\r\nI hope you have understand my problem.\r\n\r\nthank you\r\n\r\nAnthony\r\n\r\n\r\n\r\nStacktrace\r\n\r\n java.lang.IllegalArgumentException: View=com.android.internal.policy.impl.PhoneWindow$DecorView{3127ddcb V.E..... R......D 0,0-1280,736} not attached to window manager\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:396)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:322)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:116)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.app.Dialog.dismissDialog(Dialog.java:341)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.app.Dialog.dismiss(Dialog.java:324)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at com.michael.easydialog.EasyDialog$3.onAnimationEnd(EasyDialog.java:457)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.animation.AnimatorSet$AnimatorSetListener.onAnimationEnd(AnimatorSet.java:854)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1171)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:722)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:738)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.view.Choreographer.doCallbacks(Choreographer.java:580)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.view.Choreographer.doFrame(Choreographer.java:549)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:739)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:95)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:135)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5254)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:372)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\n10-15 17:42:25.690 32490-32490/temp.com.payzenmpos.dev E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/michaelye/EasyDialog/issues/comments/148659318","html_url":"https://github.com/michaelye/EasyDialog/issues/3#issuecomment-148659318","issue_url":"https://api.github.com/repos/michaelye/EasyDialog/issues/3","id":148659318,"user":{"login":"michaelye","id":916666,"avatar_url":"https://avatars.githubusercontent.com/u/916666?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelye","html_url":"https://github.com/michaelye","followers_url":"https://api.github.com/users/michaelye/followers","following_url":"https://api.github.com/users/michaelye/following{/other_user}","gists_url":"https://api.github.com/users/michaelye/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelye/subscriptions","organizations_url":"https://api.github.com/users/michaelye/orgs","repos_url":"https://api.github.com/users/michaelye/repos","events_url":"https://api.github.com/users/michaelye/events{/privacy}","received_events_url":"https://api.github.com/users/michaelye/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T08:59:36Z","updated_at":"2015-10-16T08:59:36Z","body":"Hi, Anthony\n\nI fixed the bug,and update the code and repository.\n\nYou could use the new repository by\n\n*compile 'com.github.michaelye.easydialog:easydialog:1.1'*\n\nWhether it works for you,please let me know : )\n\n2015-10-16 15:06 GMT+08:00 Anth06ny <notifications@github.com>:\n\n> Yes it's the problem.\n> I'm wainting for your fix.\n>\n> Thanks\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/michaelye/EasyDialog/issues/3#issuecomment-148633711>.\n>\n"}}