1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-06-26 07:03:20 +00:00

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 cd86ed3877
commit 52c136439e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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