光环前端需求汇总(2019年6月第4周)(1.3.4.8) https://gitlab.ghzs.com/pm/halo-app-issues/issues/560

This commit is contained in:
kehaoyuan
2019-07-02 15:30:13 +08:00
parent 3b2c294323
commit 91046c350c
3 changed files with 27 additions and 7 deletions

View File

@ -392,7 +392,9 @@ public class DialogUtils {
}
public static void checkResumeDownload(Context context, CheckDownloadCallBack callBack) {
if (NetworkUtils.isWifiConnected(context)) {
if (!NetworkUtils.isNetworkConnected(context)) {
showNoConnectionDownloadDialog(context, null, () -> callBack.onResponse(true));
} else if (NetworkUtils.isWifiConnected(context)) {
callBack.onResponse(false);
} else {
showResumeDownloadDialog(context, () -> {