From 1ea28f4df1db9fb9723b0f909b5693d560aa4d4d Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Sun, 15 Sep 2024 13:11:39 +0900 Subject: [PATCH] feat(Hide ads): Remove `Close fullscreen ads` setting --- .../shared/patches/FullscreenAdsPatch.java | 78 ++++++++----------- .../components/FullscreenAdsFilter.java | 28 ------- .../shared/settings/BaseSettings.java | 1 - 3 files changed, 31 insertions(+), 76 deletions(-) delete mode 100644 app/src/main/java/app/revanced/integrations/shared/patches/components/FullscreenAdsFilter.java diff --git a/app/src/main/java/app/revanced/integrations/shared/patches/FullscreenAdsPatch.java b/app/src/main/java/app/revanced/integrations/shared/patches/FullscreenAdsPatch.java index 92a88d9afd..4c7b7b3489 100644 --- a/app/src/main/java/app/revanced/integrations/shared/patches/FullscreenAdsPatch.java +++ b/app/src/main/java/app/revanced/integrations/shared/patches/FullscreenAdsPatch.java @@ -1,63 +1,47 @@ package app.revanced.integrations.shared.patches; -import static app.revanced.integrations.shared.utils.StringRef.str; import static app.revanced.integrations.shared.utils.Utils.hideViewBy0dpUnderCondition; -import static app.revanced.integrations.shared.utils.Utils.showToastShort; import android.view.View; -import android.widget.Button; - -import java.lang.ref.WeakReference; +import app.revanced.integrations.shared.patches.components.ByteArrayFilterGroup; import app.revanced.integrations.shared.settings.BaseSettings; import app.revanced.integrations.shared.utils.Logger; -import app.revanced.integrations.shared.utils.Utils; @SuppressWarnings("unused") public class FullscreenAdsPatch { private static final boolean hideFullscreenAdsEnabled = BaseSettings.HIDE_FULLSCREEN_ADS.get(); - private static final boolean closeFullscreenAdsEnabled = BaseSettings.HIDE_FULLSCREEN_ADS_TYPE.get(); - private static final boolean closeDialog = hideFullscreenAdsEnabled && closeFullscreenAdsEnabled; - private static final boolean disableDialog = hideFullscreenAdsEnabled && !closeFullscreenAdsEnabled; - - private static volatile long lastTimeClosedFullscreenAd; - - private static WeakReference