Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev4Mod committed Oct 27, 2024
1 parent b9bc04c commit 3f0a350
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/wmods/wppenhacer/UpdateChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -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("<div class=\"tgme_widget_message_text js-message_text\" dir=\"auto\">", lastindexHash);
var closeTag = content.indexOf("</div>", changelogIndex);
var changelogText = content.substring(changelogIndex, closeTag + 6);
Expand Down

0 comments on commit 3f0a350

Please sign in to comment.