feat:【光环助手V5.11.0】多版本下载面板-求版本优化(遗漏) https://git.shanqu.cc/pm/halo-app-issues/-/issues/1893

This commit is contained in:
leafwai
2022-06-13 14:58:54 +08:00
parent 93515bdc17
commit e3c2d9509a
10 changed files with 125 additions and 19 deletions

View File

@ -131,6 +131,13 @@ public class CleanApkAdapter extends BaseRecyclerAdapter<KcSelectGameViewHolder>
apkEntity.setGameSize(file.length());
apkEntity.setLastUpdateTime(file.lastModified());
apkEntity.setPackageName(PackageUtils.getPackageNameByPath(mContext, apk_path));
apkEntity.setVersionCode(packageInfo.versionCode);
if (apkEntity.getGamePath() != null && apkEntity.getGamePath().length() > 0) {
int dot = apkEntity.getGamePath().lastIndexOf('.');
if ((dot > -1) && (dot < apkEntity.getGamePath().length() - 1)) {
apkEntity.setFormat(apkEntity.getGamePath().substring(dot + 1));
}
}
/**安装处理类型*/
/** 得到包名 */