mirror of
https://github.com/revanced/revanced-patches
synced 2025-01-14 00:27:33 +01:00
fix(YouTube - Force original audio): Use correct availability for settings UI
This commit is contained in:
parent
69ee16c9f3
commit
a7eedcb4cc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user