DownloadUtil 优化

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

No files matched your search

@@ -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;
}
}