diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/spoofappversion/SpoofAppVersionPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/spoofappversion/SpoofAppVersionPatch.kt index e03a5d25b..4f0e0c065 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/spoofappversion/SpoofAppVersionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/spoofappversion/SpoofAppVersionPatch.kt @@ -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" + ) + ) + } } } diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/settings/SettingsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/settings/SettingsPatch.kt index e1a241a62..acf57c7e1 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/settings/SettingsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/settings/SettingsPatch.kt @@ -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) { diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml index b9f6ddf8f..3f9547b93 100644 --- a/src/main/resources/youtube/settings/host/values/strings.xml +++ b/src/main/resources/youtube/settings/host/values/strings.xml @@ -711,6 +711,7 @@ Tap and hold to set playback speed to 1.0x." 18.05.40 - Restore old comment input box 18.17.43 - Restore old player flyout panel 18.33.40 - Restore old shorts action bar + 18.38.45 - Restore old default video quality behavior "18.40.34 - Disables 'views' and 'likes' from being updated in real time" Spoof app version target Type the spoof app version target.