fix(YouTube - Spoof video streams): Add 'Android Creator' (#4262)

This commit is contained in:
LisoUseInAIKyrios
2025-01-06 11:58:27 +01:00
committed by GitHub
parent bacf32648f
commit 0479dd265e
7 changed files with 72 additions and 12 deletions

View File

@ -81,7 +81,20 @@ public class SpoofStreamingDataSideEffectsPreference extends Preference {
(clientType == ClientType.IOS_UNPLUGGED
? "ios_tv"
: "android");
setTitle(str(key + "_title"));
setSummary(str(key + "_summary"));
String title = str(key + "_title");
String summary = str(key + "_summary");
// Android VR supports AV1 but all other clients do not.
if (clientType != ClientType.ANDROID_VR && clientType != ClientType.ANDROID_VR_NO_AUTH) {
summary += '\n' + str("revanced_spoof_video_streams_about_no_av1");
// Android Creator does not support HDR.
if (clientType == ClientType.ANDROID_CREATOR) {
summary += '\n' + str("revanced_spoof_video_streams_about_no_hdr");
}
}
setTitle(title);
setSummary(summary);
}
}