下载控制(只要打开过下载那么就无法关闭(总的下载))

This commit is contained in:
kehaoyuan
2018-07-06 10:43:07 +08:00
parent 6d134edb0a
commit 72aa1474d3
3 changed files with 7 additions and 3 deletions

View File

@ -75,8 +75,6 @@ public class Config {
}
public static boolean isShowDownload(String gameId) {
if (PreferenceManager.getDefaultSharedPreferences(HaloApp.getInstance().getApplication())
.getBoolean("isFixDownload", false)) return true;
if (TextUtils.isEmpty(gameId) || !isExistDownloadFilter())
return false;
@ -89,7 +87,8 @@ public class Config {
return false;
}
} else if ("all".equals(entity.getGame())) {
if ("normal".equals(entity.getPolicy()) && filterTime(entity.getTime())) {
if ("normal".equals(entity.getPolicy()) && filterTime(entity.getTime())
|| PreferenceManager.getDefaultSharedPreferences(HaloApp.getInstance().getApplication()).getBoolean("isFixDownload", false)) {
return true;
}
}