Skip to content

Commit 0cb8011

Browse files
authored
Merge pull request #6733 from Douile/fix/recaptcha-webview-background-activity
Prevent recaptcha webview from keeping youtube loaded in background
2 parents 39722a5 + 52c1364 commit 0cb8011

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/java/org/schabi/newpipe/error/ReCaptchaActivity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ private void saveCookiesAndFinish() {
162162
setResult(RESULT_OK);
163163
}
164164

165+
// Navigate to blank page (unloads youtube to prevent background playback)
166+
recaptchaBinding.reCaptchaWebView.loadUrl("about:blank");
167+
165168
final Intent intent = new Intent(this, org.schabi.newpipe.MainActivity.class);
166169
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
167170
NavUtils.navigateUpTo(this, intent);

0 commit comments

Comments
 (0)