|
@@ -190,7 +190,9 @@ public abstract class BaseActWeb extends BaseUMActivity {
|
|
|
case DOWNLOAD_RUNNING:
|
|
case DOWNLOAD_RUNNING:
|
|
|
loadJs(String.format(Locale.CHINA, "onUpdateDownloadStatus(%d)", DownloadUtil.STATUS_ING));
|
|
loadJs(String.format(Locale.CHINA, "onUpdateDownloadStatus(%d)", DownloadUtil.STATUS_ING));
|
|
|
try {
|
|
try {
|
|
|
- String progressText = String.format(Locale.CHINA, "%d%%(%s)", Math.abs(task.getMPercent()), task.getAverageSpeed());//添加下载速度
|
|
|
|
|
|
|
+ String btnText = String.format(Locale.CHINA, "%d%%(%s)", Math.abs(task.getMPercent()), task.getAverageSpeed());//添加下载速度
|
|
|
|
|
+ String progressText = String.format(Locale.CHINA, "%d%%", Math.abs(task.getMPercent()));//添加下载速度简单版本
|
|
|
|
|
+ loadJs(String.format(Locale.CHINA, "onUpdateDownloadBtnText('%s')", btnText));
|
|
|
loadJs(String.format(Locale.CHINA, "onUpdateDownloadProgress('%s')", progressText));
|
|
loadJs(String.format(Locale.CHINA, "onUpdateDownloadProgress('%s')", progressText));
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|