feat(YouTube Music): remove Replace Cast button patch https://github.com/inotia00/ReVanced_Extended/issues/2101

This commit is contained in:
inotia00
2024-05-31 23:36:54 +09:00
parent a71ce6b88c
commit e374fa306b
8 changed files with 2 additions and 210 deletions

View File

@ -42,9 +42,9 @@ internal object PlayerGestureConfigSyntheticFingerprint : MethodFingerprint(
Opcode.RETURN_VOID,
),
customFingerprint = { methodDef, classDef ->
indexOfDownAndOutAllowedInstruction(methodDef) > 0 &&
// This method is always called "a" because this kind of class always has a single method.
methodDef.name == "a" && classDef.methods.count() == 2
methodDef.name == "a" && classDef.methods.count() == 2 &&
indexOfDownAndOutAllowedInstruction(methodDef) >= 0
}
) {
fun indexOfDownAndOutAllowedInstruction(methodDef: Method) =