From c6877e3c511b303b2ec324be86752febacbb7e3f Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Tue, 13 Aug 2024 19:50:45 -0400 Subject: [PATCH] fix: add ignore check --- .../youtube/patches/DnsResolverVerificationPatch.java | 4 ++-- .../app/revanced/integrations/youtube/settings/Settings.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/DnsResolverVerificationPatch.java b/app/src/main/java/app/revanced/integrations/youtube/patches/DnsResolverVerificationPatch.java index e8d888d66b..93b4203466 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/DnsResolverVerificationPatch.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/DnsResolverVerificationPatch.java @@ -23,7 +23,7 @@ public class DnsResolverVerificationPatch { * Checks if s.youtube.com is blacklisted and playback history will fail to work. */ public static void checkDnsResolver(Activity context) { - if (!Utils.isNetworkConnected()) return; + if (!Utils.isNetworkConnected() || Settings.IGNORE_DNS_BLOCKER.get()) return; Utils.runOnBackgroundThread(() -> { try { @@ -44,7 +44,7 @@ public static void checkDnsResolver(Activity context) { .setPositiveButton(android.R.string.ok, (dialog, which) -> { dialog.dismiss(); }).setNegativeButton(str("revanced_dns_resolver_verification_dialog_ignore"), (dialog, which) -> { - Settings.IGNORE_NON_RESOLVING_DNS.save(true); + Settings.IGNORE_DNS_BLOCKER.save(true); dialog.dismiss(); }) .setCancelable(false) diff --git a/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java b/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java index 447d1d3644..e5b65e776a 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java +++ b/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java @@ -258,7 +258,7 @@ public class Settings extends BaseSettings { @Deprecated public static final StringSetting DEPRECATED_ANNOUNCEMENT_LAST_HASH = new StringSetting("revanced_announcement_last_hash", ""); public static final IntegerSetting ANNOUNCEMENT_LAST_ID = new IntegerSetting("revanced_announcement_last_id", -1); - public static final BooleanSetting IGNORE_NON_RESOLVING_DNS = new BooleanSetting("revanced_ignore_non_resolving_dns", TRUE, false, false); + public static final BooleanSetting IGNORE_DNS_BLOCKER = new BooleanSetting("revanced_ignore_dns_blocker", FALSE, false, false); public static final BooleanSetting REMOVE_TRACKING_QUERY_PARAMETER = new BooleanSetting("revanced_remove_tracking_query_parameter", TRUE); // Debugging