mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-21 18:03:56 +00:00
refactor(YouTube - Change header): Handle importing bad settings data
This commit is contained in:
@@ -34,7 +34,10 @@ public class ChangeHeaderPatch {
|
||||
return null;
|
||||
}
|
||||
|
||||
return Utils.getResourceIdentifier(resourceName, "attr");
|
||||
final int identifier = Utils.getResourceIdentifier(resourceName, "attr");
|
||||
// Identifier is zero if custom header setting was included in imported settings
|
||||
// and a custom image was not included during patching.
|
||||
return identifier == 0 ? null : identifier;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user