Skip to content

Commit

Permalink
fix(YouTube - Force original audio): Use correct availability for set…
Browse files Browse the repository at this point in the history
…tings UI
  • Loading branch information
LisoUseInAIKyrios committed Dec 21, 2024
1 parent 69ee16c commit a7eedcb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public static final class NotSpoofingAndroidAvailability implements Setting.Avai
public boolean isAvailable() {
if (SpoofVideoStreamsPatch.isPatchIncluded()) {
EnumSetting<ClientType> 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;
Expand Down

0 comments on commit a7eedcb

Please sign in to comment.