@Override public Object call(Object who, Method method, Object... args) throws Throwable { String pkg = MethodParameterUtils.replaceFirstAppPkg(args); if (getHostPkg().equals(pkg)) { return method.invoke(who, args); } String tag = (String) args[1]; int id = (int) args[2]; id = VNotificationManager.get().dealNotificationId(id, pkg, tag, getAppUserId()); tag = VNotificationManager.get().dealNotificationTag(id, pkg, tag, getAppUserId()); args[1] = tag; args[2] = id; return method.invoke(who, args); } }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { String pkg = MethodParameterUtils.replaceFirstAppPkg(args); if (getHostPkg().equals(pkg)) { return method.invoke(who, args); } String tag = (String) args[1]; int id = (int) args[2]; id = VNotificationManager.get().dealNotificationId(id, pkg, tag, getAppUserId()); tag = VNotificationManager.get().dealNotificationTag(id, pkg, tag, getAppUserId()); args[1] = tag; args[2] = id; return method.invoke(who, args); } }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { String pkg = MethodParameterUtils.replaceFirstAppPkg(args); if (getHostPkg().equals(pkg)) { return method.invoke(who, args); } String tag = (String) args[1]; int id = (int) args[2]; id = VNotificationManager.get().dealNotificationId(id, pkg, tag, getAppUserId()); tag = VNotificationManager.get().dealNotificationTag(id, pkg, tag, getAppUserId()); args[1] = tag; args[2] = id; return method.invoke(who, args); } }