Skip to content

Commit 3f0a350

Browse files
committed
fix bug
1 parent b9bc04c commit 3f0a350

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/com/wmods/wppenhacer/UpdateChecker.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ public void run() {
3636
var lastindexHash = content.indexOf(".apk", indexHash);
3737
var hash = content.substring(indexHash + 17, lastindexHash);
3838
var appInfo = mActivity.getPackageManager().getPackageInfo(BuildConfig.APPLICATION_ID, 0);
39-
XposedBridge.log("hash: " + hash + " version: " + appInfo.versionName);
40-
if (!hash.toLowerCase().contains(appInfo.versionName.toLowerCase()) && !Objects.equals(WppCore.getPrivString("ignored_version", ""), hash)) {
39+
if (!appInfo.versionName.toLowerCase().contains(hash.toLowerCase().trim()) && !Objects.equals(WppCore.getPrivString("ignored_version", ""), hash)) {
4140
var changelogIndex = content.indexOf("<div class=\"tgme_widget_message_text js-message_text\" dir=\"auto\">", lastindexHash);
4241
var closeTag = content.indexOf("</div>", changelogIndex);
4342
var changelogText = content.substring(changelogIndex, closeTag + 6);

0 commit comments

Comments
 (0)