Use loadUrl instead of loadData

Co-authored-by: Stypox <stypox@pm.me>
This commit is contained in:
Tom 2021-07-22 10:47:47 +00:00 committed by GitHub
parent 64a10d3370
commit ac13033793

View file

@ -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);