fix(YouTube - Hide ads): Do not leave screen at launch non interactable when hiding fullscreen ads

This commit is contained in:
oSumAtrIX 2024-01-05 21:53:27 +01:00
parent 28847d85b3
commit fbdb4908ea
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -132,8 +132,9 @@ public final class AdsFilter extends Filter {
if (exceptions.matches(path)) if (exceptions.matches(path))
return false; return false;
if (matchedGroup == fullscreenAd && path.contains("|ImageType|")) { if (matchedGroup == fullscreenAd) {
closeFullscreenAd(); if (path.contains("|ImageType|")) closeFullscreenAd();
return false; // Do not actually filter the fullscreen ad otherwise it will leave a dimmed screen. return false; // Do not actually filter the fullscreen ad otherwise it will leave a dimmed screen.
} }