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); }