下载进度超过100%的情况处理

This commit is contained in:
kehaoyuan
2019-04-17 18:15:41 +08:00
parent 9042488a65
commit 7ad3a7ae92
7 changed files with 21 additions and 9 deletions

View File

@ -72,6 +72,7 @@ public class DetailDownloadUtils {
switch (downloadEntity.getStatus()) {
case downloading:
case pause:
case overflow:
viewHolder.mDownloadPb.setText(R.string.downloading);
if (downloadEntity.isPluggable() && PackagesManager.INSTANCE.isInstalled(downloadEntity.getPackageName())) {
viewHolder.mDownloadPb.setDownloadType(DownloadProgressBar.DownloadType.DOWNLOADING_PLUGIN);