mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-06-13 05:37:41 +02:00
fix(YouTube - Force original audio): Use correct availability for settings UI
This commit is contained in:
@ -36,8 +36,7 @@ public class SpoofVideoStreamsPatch {
|
|||||||
public boolean isAvailable() {
|
public boolean isAvailable() {
|
||||||
if (SpoofVideoStreamsPatch.isPatchIncluded()) {
|
if (SpoofVideoStreamsPatch.isPatchIncluded()) {
|
||||||
EnumSetting<ClientType> setting = BaseSettings.SPOOF_VIDEO_STREAMS_CLIENT_TYPE;
|
EnumSetting<ClientType> setting = BaseSettings.SPOOF_VIDEO_STREAMS_CLIENT_TYPE;
|
||||||
ClientType type = setting.get();
|
return !setting.isAvailable() || setting.get().androidSdkVersion == null;
|
||||||
return setting.isAvailable() && type.androidSdkVersion == null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user