修复插件化问题
This commit is contained in:
@ -156,6 +156,7 @@ public class MainActivity extends BaseFragmentActivity implements OnClickListene
|
||||
if (DownloadStatus.done.equals(downloadEntity.getStatus())) {
|
||||
if (downloadEntity.getName().contains("光环助手")) {
|
||||
DataUtils.onEvent(MainActivity.this, "软件更新", "下载完成");
|
||||
entryMap.put(downloadEntity.getPackageName(), downloadEntity.getUrl());
|
||||
startActivity(PackageUtils.getInstallIntent(downloadEntity.getPath()));
|
||||
if (appEntity != null && appEntity.isIs_force()) {
|
||||
finish();
|
||||
@ -271,9 +272,8 @@ public class MainActivity extends BaseFragmentActivity implements OnClickListene
|
||||
PackageManager manager = new PackageManager(
|
||||
getApplicationContext());
|
||||
if (manager.launchSetup(downloadEntity.getPath())) {
|
||||
startActivity(PackageUtils
|
||||
.getInstallIntent(downloadEntity
|
||||
.getPath()));
|
||||
entryMap.put(downloadEntity.getPackageName(), downloadEntity.getUrl());
|
||||
startActivity(PackageUtils.getInstallIntent(downloadEntity.getPath()));
|
||||
} else {
|
||||
// 记录自动弹出卸载框
|
||||
// 弹出卸载提示框
|
||||
@ -526,7 +526,8 @@ public class MainActivity extends BaseFragmentActivity implements OnClickListene
|
||||
}
|
||||
}
|
||||
} else {
|
||||
games.get(i).setPluggable(true);
|
||||
games.remove(i);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
PackageManager.addUpdateList(games);
|
||||
@ -1274,7 +1275,7 @@ public class MainActivity extends BaseFragmentActivity implements OnClickListene
|
||||
DataUtils.onEvent(this, "插件化", downloadEntity.getName(), kv6);
|
||||
}
|
||||
|
||||
// 删除数据库 和 文件
|
||||
// 删除数据库和文件
|
||||
DownloadManager.getInstance(getApplicationContext()).cancel(
|
||||
url, sp.getBoolean("autodelete", true));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user