From 1a1f44d2355bb5e93eefca77b8df41211f6fff42 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 29 Dec 2023 20:45:20 +0100 Subject: [PATCH] fix(YouTube - Hide ads): Fix dimmed screen at launch by not filtering fullscreen ads --- .../app/revanced/integrations/patches/components/AdsFilter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/app/revanced/integrations/patches/components/AdsFilter.java b/app/src/main/java/app/revanced/integrations/patches/components/AdsFilter.java index 3b0cb0ec57..3ff2675954 100644 --- a/app/src/main/java/app/revanced/integrations/patches/components/AdsFilter.java +++ b/app/src/main/java/app/revanced/integrations/patches/components/AdsFilter.java @@ -134,6 +134,7 @@ public boolean isFiltered(@Nullable String identifier, String path, byte[] proto if (matchedGroup == fullscreenAd && path.contains("|ImageType|")) { closeFullscreenAd(); + return false; // Do not actually filter the fullscreen ad otherwise it will leave a dimmed screen. } // Check for the index because of likelihood of false positives.