mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-04-30 06:34:28 +02: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() {
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user