version:4.2
fix:修复不能自动下载强制应用,锁定状态显示问题,增加打开主页判断是否在请求 update:
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user