From 52c136439e8691a4d0e603b60157816ee6d32d95 Mon Sep 17 00:00:00 2001 From: Tom <25043847+Douile@users.noreply.github.com> Date: Thu, 22 Jul 2021 10:47:47 +0000 Subject: [PATCH] Use loadUrl instead of loadData Co-authored-by: Stypox --- .../main/java/org/schabi/newpipe/error/ReCaptchaActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/error/ReCaptchaActivity.java b/app/src/main/java/org/schabi/newpipe/error/ReCaptchaActivity.java index 4687129e4..cd6a882ae 100644 --- a/app/src/main/java/org/schabi/newpipe/error/ReCaptchaActivity.java +++ b/app/src/main/java/org/schabi/newpipe/error/ReCaptchaActivity.java @@ -163,7 +163,7 @@ public class ReCaptchaActivity extends AppCompatActivity { } // Navigate to blank page (unloads youtube to prevent background playback) - recaptchaBinding.reCaptchaWebView.loadData("", "text/html", null); + recaptchaBinding.reCaptchaWebView.loadUrl("about:blank"); final Intent intent = new Intent(this, org.schabi.newpipe.MainActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);