后台控制关闭插件相关的功能

This commit is contained in:
kehaoyuan
2018-01-25 17:41:54 +08:00
parent 0e791133dd
commit 52be8db71f
23 changed files with 296 additions and 23 deletions

View File

@ -95,7 +95,7 @@ public class DownloadItemUtils {
public static void updateItem(Context context, GameEntity gameEntity, GameViewHolder holder, boolean isShowPlatform) {
// 控制是否显示下载按钮
if (!Config.isShow(context) || context.getString(R.string.app_name).equals(gameEntity.getName())) {
if (!Config.isShowDownload(gameEntity.getId()) || context.getString(R.string.app_name).equals(gameEntity.getName())) {
holder.gameDownloadBtn.setVisibility(View.GONE);
} else {
holder.gameDownloadBtn.setVisibility(View.VISIBLE);