fix(YouTube - Force original audio): Use correct availability for settings UI

This commit is contained in:
LisoUseInAIKyrios 2024-12-21 16:08:22 +04:00
parent 69ee16c9f3
commit a7eedcb4cc

View File

@ -36,8 +36,7 @@ public class SpoofVideoStreamsPatch {
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;