Remove workaround for Application#attach

This commit is contained in:
solohsu 2019-02-17 04:45:59 +08:00
parent 4b55e3d033
commit bc878ec424
1 changed files with 0 additions and 1 deletions

View File

@ -156,7 +156,6 @@ public final class XposedBridge {
* @see #hookAllConstructors
*/
public static XC_MethodHook.Unhook hookMethod(Member hookMethod, XC_MethodHook callback) {
hookMethod = MethodHookUtils.preCheck(hookMethod);
if (!(hookMethod instanceof Method) && !(hookMethod instanceof Constructor<?>)) {
throw new IllegalArgumentException("Only methods and constructors can be hooked: " + hookMethod.toString());
} else if (hookMethod.getDeclaringClass().isInterface()) {