| 86 | } |
| 87 | |
| 88 | public static XC_MethodHook afterAlways(final @NonNull CommonDynamicHook this0, int priority, |
| 89 | final @NonNull AfterHookedMethod afterHookedMethod) { |
| 90 | Objects.requireNonNull(this0, "this0 == null"); |
| 91 | return new XC_MethodHook(priority) { |
| 92 | @Override |
| 93 | protected void afterHookedMethod(MethodHookParam param) throws Throwable { |
| 94 | try { |
| 95 | afterHookedMethod.afterHookedMethod(param); |
| 96 | } catch (Throwable e) { |
| 97 | this0.logError(e); |
| 98 | throw e; |
| 99 | } |
| 100 | } |
| 101 | }; |
| 102 | } |
| 103 | |
| 104 | public static XC_MethodHook beforeIfEnabled(final @NonNull CommonDynamicHook this0, |
| 105 | final @NonNull BeforeHookedMethod beforeHookedMethod) { |