fix: updater caused by filename change

This commit is contained in:
NextAlone 2022-03-20 02:36:30 +08:00
parent 701a2462e2
commit 4f7491d222
No known key found for this signature in database
GPG Key ID: DBA7B0AEF8C1CD2C

View File

@ -137,7 +137,7 @@ public class InternalUpdater {
try {
TLRPC.messages_Messages res = (TLRPC.messages_Messages) response;
FileLog.d("Retrieve update messages, size:" + res.messages.size());
final String target = metadata.versionName + "(" + metadata.versionCode + ")" + "-" + BuildConfig.FLAVOR + "-" + FileUtil.getAbi() + "-" + ("debug".equals(BuildConfig.BUILD_TYPE) ? "release" : BuildConfig.BUILD_TYPE) + ".apk";
final String target = metadata.versionName + "(" + metadata.versionCode + ")" + "-" + BuildConfig.FLAVOR + "-" + FileUtil.getAbi() + ".apk";
for (int i = 0; i < res.messages.size(); i++) {
if (res.messages.get(i).media == null) continue;