feat:【光环助手V5.11.0】多版本下载面板-求版本优化(遗漏) https://git.shanqu.cc/pm/halo-app-issues/-/issues/1893
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
/**安装处理类型*/
|
||||
/** 得到包名 */
|
||||
|
||||
Reference in New Issue
Block a user