From 882f5ee8c13170671b5ce8cefbcb6476326db53e Mon Sep 17 00:00:00 2001 From: hd Date: Thu, 28 Nov 2024 00:07:20 +0800 Subject: [PATCH] fix: RemoveShareLimit may throw ex --- .../main/java/io/github/memory2314/hook/RemoveShareLimit.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/github/memory2314/hook/RemoveShareLimit.kt b/app/src/main/java/io/github/memory2314/hook/RemoveShareLimit.kt index e33929ed5e..6dcee8d0a8 100644 --- a/app/src/main/java/io/github/memory2314/hook/RemoveShareLimit.kt +++ b/app/src/main/java/io/github/memory2314/hook/RemoveShareLimit.kt @@ -48,8 +48,8 @@ object RemoveShareLimit : CommonSwitchFunctionHook() { val forwardTargetKey = XposedHelpers.callMethod( param.thisObject, "getForwardTargetKey", - resultRecord.get("uin"), - XposedHelpers.callMethod(resultRecord, "getUinType") + arrayOf(String::class.java, Int::class.java), + resultRecord.get("uin"), XposedHelpers.callMethod(resultRecord, "getUinType") ) val mForwardTargetMap = param.thisObject.get("mForwardTargetMap") as MutableMap mForwardTargetMap[forwardTargetKey] = XposedHelpers.callMethod(resultRecord, "copyResultRecord", resultRecord)