Juneld / socialauth-android

Automatically exported from code.google.com/p/socialauth-android
0 stars 0 forks source link

Application crashes after application close #157

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Invoke AuthAdapter.authorize() method for any provider
2. Close application before auth dialog appears on the screen

What is the expected output? What do you see instead?
Should be:Nothing happens, application closed successfully
Now: application crashes

What version of the product are you using? On what operating system?
Android 4.4.2, socialauth-4.4.jar, socialauth-android-3.1.jar

Please provide any additional information below.

  java.lang.IllegalArgumentException: View=com.android.internal.policy.impl.PhoneWindow$DecorView{41f00f00 V.E..... R.....ID 0,0-332,230} not attached to window manager
            at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:370)
            at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:299)
            at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:84)
            at android.app.Dialog.dismissDialog(Dialog.java:329)
            at android.app.Dialog.dismiss(Dialog.java:312)
            at org.brickred.socialauth.android.SocialAuthDialog$SocialAuthWebViewClient.onPageFinished(SocialAuthDialog.java:456)
            at com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished(WebViewContentsClientAdapter.java:449)
            at com.android.org.chromium.android_webview.AwContentsClient$AwWebContentsObserver$1.run(AwContentsClient.java:73)
            at android.os.Handler.handleCallback(Handler.java:733)
            at android.os.Handler.dispatchMessage(Handler.java:95)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5017)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
            at dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by egor.vor...@gmail.com on 24 Mar 2014 at 5:40

GoogleCodeExporter commented 8 years ago
Ok , will review the code and update on thread

Original comment by l...@3pillarglobal.com on 24 Mar 2014 at 7:36

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by egor.vor...@gmail.com on 24 Mar 2014 at 7:54

GoogleCodeExporter commented 8 years ago
what is the solution?

Original comment by sercan.e...@gmail.com on 5 Sep 2014 at 8:02