fix(YouTube): Do not crash on startup for root installs (#2655)
This commit is contained in:
parent
aaed3a970b
commit
02abace127
|
@ -25,7 +25,6 @@ import java.io.Closeable
|
||||||
@Patch(
|
@Patch(
|
||||||
description = "Adds settings for ReVanced to YouTube.",
|
description = "Adds settings for ReVanced to YouTube.",
|
||||||
dependencies = [
|
dependencies = [
|
||||||
ChangePackageNamePatch::class,
|
|
||||||
IntegrationsPatch::class,
|
IntegrationsPatch::class,
|
||||||
SettingsResourcePatch::class,
|
SettingsResourcePatch::class,
|
||||||
AddResourcesPatch::class
|
AddResourcesPatch::class
|
||||||
|
@ -101,7 +100,7 @@ object SettingsPatch : BytecodePatch(
|
||||||
targetClass = "com.google.android.libraries.social.licenses.LicenseActivity"
|
targetClass = "com.google.android.libraries.social.licenses.LicenseActivity"
|
||||||
) {
|
) {
|
||||||
// The package name change has to be reflected in the intent.
|
// 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() {
|
object PreferenceScreen : BasePreferenceScreen() {
|
||||||
|
|
Loading…
Reference in a new issue