DownloadEntry修改为DownloadEntity
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user