From a7eedcb4cca6b7b12629c478c24c0899c80e3615 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sat, 21 Dec 2024 16:08:22 +0400 Subject: [PATCH] fix(YouTube - Force original audio): Use correct availability for settings UI --- .../extension/shared/spoof/SpoofVideoStreamsPatch.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/SpoofVideoStreamsPatch.java b/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/SpoofVideoStreamsPatch.java index e55306e5ad..dd13c9421d 100644 --- a/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/SpoofVideoStreamsPatch.java +++ b/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/SpoofVideoStreamsPatch.java @@ -36,8 +36,7 @@ public static final class NotSpoofingAndroidAvailability implements Setting.Avai public boolean isAvailable() { if (SpoofVideoStreamsPatch.isPatchIncluded()) { EnumSetting setting = BaseSettings.SPOOF_VIDEO_STREAMS_CLIENT_TYPE; - ClientType type = setting.get(); - return setting.isAvailable() && type.androidSdkVersion == null; + return !setting.isAvailable() || setting.get().androidSdkVersion == null; } return true;