From ed63d49c177bb0207af4bf0283ab584a24191deb Mon Sep 17 00:00:00 2001 From: firesun Date: Thu, 10 Jan 2019 00:53:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=84=E6=BD=9C?= =?UTF-8?q?=E5=9C=A8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 4 ++-- .../java/me/firesun/wechat/enhancement/util/HookParams.java | 2 +- .../me/firesun/wechat/enhancement/util/ReflectionUtil.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index f555f12..4ef4c4b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -23,8 +23,8 @@ android { applicationId "me.firesun.wechat.enhancement" minSdkVersion 17 targetSdkVersion 23 - versionCode 45 - versionName "1.9.0" + versionCode 46 + versionName "1.9.1" } buildTypes { diff --git a/app/src/main/java/me/firesun/wechat/enhancement/util/HookParams.java b/app/src/main/java/me/firesun/wechat/enhancement/util/HookParams.java index a437dab..0a065be 100644 --- a/app/src/main/java/me/firesun/wechat/enhancement/util/HookParams.java +++ b/app/src/main/java/me/firesun/wechat/enhancement/util/HookParams.java @@ -4,7 +4,7 @@ public class HookParams { public static final String SAVE_WECHAT_ENHANCEMENT_CONFIG = "wechat.intent.action.SAVE_WECHAT_ENHANCEMENT_CONFIG"; public static final String WECHAT_ENHANCEMENT_CONFIG_NAME = "wechat_enhancement_config"; public static final String WECHAT_PACKAGE_NAME = "com.tencent.mm"; - public static final int VERSION_CODE = 45; //大版本变动时候才需要修改 + public static final int VERSION_CODE = 46; //大版本变动时候才需要修改 public String SQLiteDatabaseClassName = "com.tencent.wcdb.database.SQLiteDatabase"; public String SQLiteDatabaseUpdateMethod = "updateWithOnConflict"; diff --git a/app/src/main/java/me/firesun/wechat/enhancement/util/ReflectionUtil.java b/app/src/main/java/me/firesun/wechat/enhancement/util/ReflectionUtil.java index ba8b612..22eafd2 100644 --- a/app/src/main/java/me/firesun/wechat/enhancement/util/ReflectionUtil.java +++ b/app/src/main/java/me/firesun/wechat/enhancement/util/ReflectionUtil.java @@ -68,7 +68,7 @@ public static final String getClassName(DexClass clazz) { } public static Classes findClassesFromPackage(ClassLoader loader, List classes, String packageName, int depth) { - if (classesCache.containsKey(packageName)) { + if (classesCache.containsKey(packageName + depth)) { return (Classes) classesCache.get(packageName + depth); }