feat(YouTube/Spoof app version): add target version 18.38.45 - Restore old default video quality behavior

This commit is contained in:
inotia00
2023-11-25 09:35:13 +09:00
parent 47e2d49860
commit f5f9485a99
3 changed files with 15 additions and 3 deletions

View File

@ -62,13 +62,22 @@ object SpoofAppVersionPatch : AbstractVersionSpoofPatch(
)
)
if (SettingsPatch.upward1841) {
if (SettingsPatch.upward1839) {
contexts.appendChild(
arrayOf(
"revanced_spoof_app_version_target_entry" to "@string/revanced_spoof_app_version_target_entry_18_40_34",
"revanced_spoof_app_version_target_entry_value" to "18.40.34"
"revanced_spoof_app_version_target_entry" to "@string/revanced_spoof_app_version_target_entry_18_38_45",
"revanced_spoof_app_version_target_entry_value" to "18.38.45"
)
)
if (SettingsPatch.upward1841) {
contexts.appendChild(
arrayOf(
"revanced_spoof_app_version_target_entry" to "@string/revanced_spoof_app_version_target_entry_18_40_34",
"revanced_spoof_app_version_target_entry_value" to "18.40.34"
)
)
}
}
}

View File

@ -99,6 +99,7 @@ object SettingsPatch : AbstractSettingsResourcePatch(
is1836 = playServicesVersion in 233700000..233801999
upward1828 = 232900000 <= playServicesVersion
upward1834 = 233502000 <= playServicesVersion
upward1839 = 234002000 <= playServicesVersion
upward1841 = 234200000 <= playServicesVersion
break
@ -199,6 +200,7 @@ object SettingsPatch : AbstractSettingsResourcePatch(
internal var is1836: Boolean = false
internal var upward1828: Boolean = false
internal var upward1834: Boolean = false
internal var upward1839: Boolean = false
internal var upward1841: Boolean = false
internal fun addPreference(settingArray: Array<String>) {