DownloadUtil 优化

This commit is contained in:
AriaLyy
2017-01-18 17:18:08 +08:00
parent 9bba3cd899
commit 235dfef19d
7 changed files with 468 additions and 321 deletions

View File

@ -67,7 +67,6 @@ final class FileListAdapter extends AbsRVAdapter<FileListEntity, FileListAdapter
Set<String> keys = mBtStates.keySet();
for (String key : keys) {
if (key.equals(downloadUrl)) {
Log.d(TAG, "able ==> " + able);
mBtStates.put(downloadUrl, able);
notifyItemChanged(indexItem(downloadUrl));
return;
@ -80,7 +79,7 @@ final class FileListAdapter extends AbsRVAdapter<FileListEntity, FileListAdapter
for (String key : keys) {
if (key.equals(url)) {
int index = mPositions.get(key);
Log.d(TAG, "index ==> " + index);
//Log.d(TAG, "index ==> " + index);
return index;
}
}