version:4.2

fix:修复不能自动下载强制应用,锁定状态显示问题,增加打开主页判断是否在请求
update:
This commit is contained in:
2022-04-15 11:40:02 +08:00
parent 0a75344b61
commit 2339e1484d
20 changed files with 369 additions and 374 deletions

View File

@@ -551,24 +551,4 @@ public class BaseApplication extends MultiDexApplication {
}
}
boolean isForecDownload = false;
public boolean isDownloading() {
return isForecDownload;
}
public void setDownloadState(boolean state) {
isForecDownload = state;
}
public void checkIsDownloading() {
List<DownloadEntity> list = Aria.download(this).getDRunningTask();
if (list == null || list.size() == 0) {
BaseApplication.getInstance().setDownloadState(false);
} else {
BaseApplication.getInstance().setDownloadState(true);
}
Log.e(TAG, "isDownloading=" + BaseApplication.getInstance().isDownloading());
}
}