feat(YouTube Music): add support version 7.11.51 ~ 7.12.51

This commit is contained in:
inotia00
2024-07-30 22:43:27 +09:00
parent 65bb424e95
commit b31e763c86
5 changed files with 37 additions and 30 deletions

View File

@ -61,7 +61,7 @@ abstract class BaseMainActivityResolvePatch(
fun injectOnCreateMethodCall(classDescriptor: String, methodDescriptor: String) =
onCreateMethod.injectMethodCall(classDescriptor, methodDescriptor)
private fun getMethod(methodDescriptor: String) =
internal fun getMethod(methodDescriptor: String) =
mainActivityMutableClass.methods.find { method -> method.name == methodDescriptor }
?: throw PatchException("Could not find $methodDescriptor")