Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Error with form showing when exit the app #55

Closed
elrufoelrufo opened this issue May 28, 2018 · 2 comments
Closed

Error with form showing when exit the app #55

elrufoelrufo opened this issue May 28, 2018 · 2 comments

Comments

@elrufoelrufo
Copy link

Hello,

I'm getting the following error in Android with Android 8.1 in Nexus 5X when close the app with the form showing. Could you please add a method called dismiss() to close the form if it showing when onDestroy() is called.

Error Log :

05-28 21:46:37.672 4871-4871/? E/WindowManager: android.view.WindowLeaked: Activity xxx.xxxxx.xxxxxxx.MainActivity has leaked window DecorView@ad6d0b3[] that was originally added here
        at android.view.ViewRootImpl.<init>(ViewRootImpl.java:485)
        at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:346)
        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
        at android.app.Dialog.show(Dialog.java:330)
        at com.google.ads.consent.ConsentForm.show(ConsentForm.java:353)
        at xxx.xxxxx.xxxxxxx.settings.SettingsFragment$1.onConsentFormLoaded(SettingsFragment.java:62)
        at com.google.ads.consent.ConsentForm.handleLoadComplete(ConsentForm.java:283)
        at com.google.ads.consent.ConsentForm.access$600(ConsentForm.java:45)
        at com.google.ads.consent.ConsentForm$2.handleUrl(ConsentForm.java:105)
        at com.google.ads.consent.ConsentForm$2.shouldOverrideUrlLoading(ConsentForm.java:128)
        at com.android.webview.chromium.Ap.shouldOverrideUrlLoading(WebViewContentsClientAdapter.java:75)
        at org.chromium.android_webview.AwContentsClient.shouldIgnoreNavigation(AwContentsClient.java:19)
        at org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading(AwContentsClientBridge.java:160)
        at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method)

If you need further information. Please let me know.

Thanks. Regards.

@randomhay
Copy link

Same with me. How to fix it?

@elrufoelrufo
Copy link
Author

This issue has been fixed with the last release. v1.0.4 of the Consent SDK.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants