feat: 修复游戏详情页仅显示一个按钮时,畅玩游戏更新无法正常执行的问题
This commit is contained in:
@ -544,7 +544,10 @@ class DetailViewHolder(
|
||||
val apkEntity = mGameEntity.getApk()[0]
|
||||
val msg = FileUtils.isCanDownload(mViewHolder.context, apkEntity.size)
|
||||
if (TextUtils.isEmpty(msg)) {
|
||||
if (asVGame && mViewHolder.context.getString(R.string.update_v) == buttonText) {
|
||||
val btnContainsUpdateText = mViewHolder.context.getString(R.string.update_v) == buttonText
|
||||
|| buttonText.contains(mViewHolder.context.getString(R.string.update))
|
||||
|
||||
if (asVGame && btnContainsUpdateText) {
|
||||
VHelper.updateOrReDownload(mGameEntity)
|
||||
} else {
|
||||
DownloadManager.createDownload(
|
||||
|
||||
Reference in New Issue
Block a user