fix(YouTube): Do not crash on startup for root installs (#2655)

This commit is contained in:
LisoUseInAIKyrios 2024-01-28 14:47:01 +04:00 committed by GitHub
parent aaed3a970b
commit 02abace127
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,6 @@ import java.io.Closeable
@Patch(
description = "Adds settings for ReVanced to YouTube.",
dependencies = [
ChangePackageNamePatch::class,
IntegrationsPatch::class,
SettingsResourcePatch::class,
AddResourcesPatch::class
@ -101,7 +100,7 @@ object SettingsPatch : BytecodePatch(
targetClass = "com.google.android.libraries.social.licenses.LicenseActivity"
) {
// The package name change has to be reflected in the intent.
ChangePackageNamePatch.setOrGetFallbackPackageName("com.google.android.apps.youtube")
ChangePackageNamePatch.setOrGetFallbackPackageName("com.google.android.youtube")
}
object PreferenceScreen : BasePreferenceScreen() {