下载进度条显示时,不隐藏标签列表,隐藏des内容

This commit is contained in:
huangzhuanghua
2016-08-15 15:12:04 +08:00
parent 11676bff83
commit 84f8008167
11 changed files with 20 additions and 22 deletions

View File

@ -110,7 +110,7 @@ public class DownloadItemUtils {
}
public static void updateItem(Context context,
LinearLayout labelList,
TextView textView,
ProgressBar game_progressbar,
LinearLayout game_ll_info,
TextView download_speed,
@ -146,7 +146,7 @@ public class DownloadItemUtils {
if (downloadEntry != null && (pluginPlatform == null
|| pluginPlatform.equals(PlatformUtils.getInstance(context)
.getPlatformName(downloadEntry.getMeta().get("platform"))))) {
labelList.setVisibility(View.GONE);
textView.setVisibility(View.GONE);
game_progressbar.setVisibility(View.VISIBLE);
game_ll_info.setVisibility(View.VISIBLE);
@ -193,17 +193,17 @@ public class DownloadItemUtils {
download_percentage.setText("100%");
} else if (status.equals(DownloadStatus.cancel)
|| status.equals(DownloadStatus.hijack)) {
labelList.setVisibility(View.VISIBLE);
textView.setVisibility(View.VISIBLE);
game_progressbar.setVisibility(View.GONE);
game_ll_info.setVisibility(View.GONE);
}
} else {
labelList.setVisibility(View.VISIBLE);
textView.setVisibility(View.VISIBLE);
game_progressbar.setVisibility(View.GONE);
game_ll_info.setVisibility(View.GONE);
}
} else {
labelList.setVisibility(View.VISIBLE);
textView.setVisibility(View.VISIBLE);
game_progressbar.setVisibility(View.GONE);
game_ll_info.setVisibility(View.GONE);
}
@ -307,7 +307,7 @@ public class DownloadItemUtils {
}
public static void updateItem(Context context,
LinearLayout labelList,
TextView textView,
ProgressBar game_progressbar,
LinearLayout game_ll_info,
TextView download_speed,
@ -316,7 +316,7 @@ public class DownloadItemUtils {
GameEntity entity,
ArrayMap<String, LinkedBlockingQueue<String>> platformMap,
ArrayMap<String, String> statusMap) {
updateItem(context, labelList, game_progressbar, game_ll_info, download_speed,
updateItem(context, textView, game_progressbar, game_ll_info, download_speed,
download_percentage, downloadBtn, entity, platformMap, statusMap, true);
}