工具重命名

This commit is contained in:
lyy
2016-11-04 17:11:52 +08:00
parent 96fb3b0909
commit 493810d0b0
16 changed files with 98 additions and 75 deletions

View File

@ -5,7 +5,7 @@ import android.content.IntentFilter;
import android.os.Environment;
import com.arialyy.downloadutil.core.DownloadEntity;
import com.arialyy.downloadutil.core.DownloadManager;
import com.arialyy.downloadutil.util.Util;
import com.arialyy.downloadutil.util.CommonUtil;
import com.arialyy.frame.util.AndroidUtils;
import com.arialyy.frame.util.StringUtil;
import com.arialyy.simple.R;
@ -66,7 +66,7 @@ public class DownloadModule extends BaseModule {
String[] urls = getContext().getResources().getStringArray(R.array.test_apk_download_url);
int i = 0;
for (String url : urls) {
String fileName = Util.keyToHashCode(url) + ".apk";
String fileName = CommonUtil.keyToHashCode(url) + ".apk";
DownloadEntity entity = new DownloadEntity();
entity.setDownloadUrl(url);
entity.setDownloadPath(getDownloadPath(url));