修改下载按钮样式

This commit is contained in:
kehaoyuan@ghzhushou.com
2020-04-20 18:38:12 +08:00
parent 1c118b06c9
commit 2038b16dce
18 changed files with 86 additions and 63 deletions

View File

@ -338,10 +338,10 @@ public class DownloadItemUtils {
holder.gameDownloadBtn.setText(R.string.install);
holder.gameDownloadBtn.setTextColor(Color.WHITE);
if (downloadEntity.isPluggable()
&& PackagesManager.INSTANCE.isInstalled(downloadEntity.getPackageName())) {
holder.gameDownloadBtn.setBackgroundResource(R.drawable.game_item_btn_plugin_style);
&& PackagesManager.isInstalled(downloadEntity.getPackageName())) {
holder.gameDownloadBtn.setBackgroundResource(R.drawable.download_button_pluggable_style);
} else {
holder.gameDownloadBtn.setBackgroundResource(R.drawable.game_item_btn_download_style);
holder.gameDownloadBtn.setBackgroundResource(R.drawable.download_button_normal_style);
}
}
}