DownloadEntry修改为DownloadEntity

This commit is contained in:
黄壮华
2016-09-13 07:23:02 +08:00
parent d95d5d5e6b
commit fc68b9add5
36 changed files with 1121 additions and 1009 deletions

View File

@ -11,7 +11,7 @@ import com.gh.base.BaseFragment;
import com.gh.common.util.DisplayUtils;
import com.gh.common.util.DownloadItemUtils;
import com.gh.download.DataWatcher;
import com.gh.download.DownloadEntry;
import com.gh.download.DownloadEntity;
import com.gh.download.DownloadManager;
import com.gh.gamecenter.R;
import com.gh.gamecenter.entity.GameEntity;
@ -40,15 +40,15 @@ public class InstallFragment extends BaseFragment {
private DataWatcher dataWatcher = new DataWatcher() {
@Override
public void onDataChanged(DownloadEntry downloadEntry) {
public void onDataChanged(DownloadEntity downloadEntity) {
//特殊 插件化update
Integer location = adapter.getLocationMap().get(
downloadEntry.getName() + " - " + downloadEntry.getMeta().get("platform"));
downloadEntity.getName() + " - " + downloadEntity.getPlatform());
if (location != null) {
GameEntity detailedEntity = adapter.getGameList().get(location);
if (detailedEntity != null) {
DownloadItemUtils.processDate(getActivity(), detailedEntity,
downloadEntry, adapter, location + 2);
downloadEntity, adapter, location + 2);
}
}
}