zengjiebin лет назад: 7
Родитель
Сommit
9411f7f518
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app/src/main/java/com/sheep/gamegroup/util/js/BaseActWeb.java

+ 3 - 1
app/src/main/java/com/sheep/gamegroup/util/js/BaseActWeb.java

@@ -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();