From 3f0a350443976fe0e176a302d7d9a57df83d9964 Mon Sep 17 00:00:00 2001 From: Dev4Mod Date: Sun, 27 Oct 2024 14:53:16 -0300 Subject: [PATCH] fix bug --- app/src/main/java/com/wmods/wppenhacer/UpdateChecker.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/wmods/wppenhacer/UpdateChecker.java b/app/src/main/java/com/wmods/wppenhacer/UpdateChecker.java index d89c817b..d4953428 100644 --- a/app/src/main/java/com/wmods/wppenhacer/UpdateChecker.java +++ b/app/src/main/java/com/wmods/wppenhacer/UpdateChecker.java @@ -36,8 +36,7 @@ public void run() { var lastindexHash = content.indexOf(".apk", indexHash); var hash = content.substring(indexHash + 17, lastindexHash); var appInfo = mActivity.getPackageManager().getPackageInfo(BuildConfig.APPLICATION_ID, 0); - XposedBridge.log("hash: " + hash + " version: " + appInfo.versionName); - if (!hash.toLowerCase().contains(appInfo.versionName.toLowerCase()) && !Objects.equals(WppCore.getPrivString("ignored_version", ""), hash)) { + if (!appInfo.versionName.toLowerCase().contains(hash.toLowerCase().trim()) && !Objects.equals(WppCore.getPrivString("ignored_version", ""), hash)) { var changelogIndex = content.indexOf("
", lastindexHash); var closeTag = content.indexOf("
", changelogIndex); var changelogText = content.substring(changelogIndex, closeTag + 6);