diff --git a/app/src/main/java/io/github/chipppppppppp/lime/hooks/CheckHookTargetVersion.java b/app/src/main/java/io/github/chipppppppppp/lime/hooks/CheckHookTargetVersion.java index 99d7e6dc..a618b6ac 100644 --- a/app/src/main/java/io/github/chipppppppppp/lime/hooks/CheckHookTargetVersion.java +++ b/app/src/main/java/io/github/chipppppppppp/lime/hooks/CheckHookTargetVersion.java @@ -25,7 +25,7 @@ public void hook(LimeOptions limeOptions, XC_LoadPackage.LoadPackageParam loadPa protected void beforeHookedMethod(MethodHookParam param) throws Throwable { Context context = (Context) param.thisObject; PackageManager pm = context.getPackageManager(); - if (!BuildConfig.HOOK_TARGET_VERSION.equals(pm.getPackageInfo(loadPackageParam.packageName, 0).versionCode.toString())) { + if (!BuildConfig.HOOK_TARGET_VERSION.equals(pm.getPackageInfo(loadPackageParam.packageName, 0).versionCode)) { Utils.addModuleAssetPath(context); Toast.makeText(context.getApplicationContext(), context.getString(R.string.incompatible_version), Toast.LENGTH_SHORT).show(); }