55import android .text .Html ;
66
77import com .wmods .wppenhacer .xposed .core .WppCore ;
8+ import com .wmods .wppenhacer .xposed .utils .DebugUtils ;
89import com .wmods .wppenhacer .xposed .utils .Utils ;
910
1011import java .util .Objects ;
1112
13+ import de .robv .android .xposed .XposedBridge ;
1214import okhttp3 .OkHttpClient ;
1315
1416public class UpdateChecker implements Runnable {
@@ -31,9 +33,10 @@ public void run() {
3133 var body = response .body ();
3234 if (body == null ) return ;
3335 var content = body .string ();
34- var indexHash = content .lastIndexOf ("WaEnhancer_" );
36+ var findText = "WaEnhancer_Business_" ;
37+ var indexHash = content .lastIndexOf (findText );
3538 var lastindexHash = content .indexOf (".apk" , indexHash );
36- var hash = content .substring (indexHash + 17 , lastindexHash );
39+ var hash = content .substring (indexHash + findText . length () , lastindexHash );
3740 var appInfo = mActivity .getPackageManager ().getPackageInfo (BuildConfig .APPLICATION_ID , 0 );
3841 if (!appInfo .versionName .toLowerCase ().contains (hash .toLowerCase ().trim ()) && !Objects .equals (WppCore .getPrivString ("ignored_version" , "" ), hash )) {
3942 var changelogIndex = content .indexOf ("<div class=\" tgme_widget_message_text js-message_text\" dir=\" auto\" >" , lastindexHash );
0 commit comments