修改HotcardAdapter为SubjectAdapter
This commit is contained in:
@ -23,7 +23,7 @@ import com.gh.common.view.VerticalItemDecoration;
|
||||
import com.gh.download.DataWatcher;
|
||||
import com.gh.download.DownloadEntry;
|
||||
import com.gh.download.DownloadManager;
|
||||
import com.gh.gamecenter.adapter.HotCardAdapter;
|
||||
import com.gh.gamecenter.adapter.SubjectAdapter;
|
||||
import com.gh.gamecenter.db.info.GameInfo;
|
||||
import com.gh.gamecenter.entity.ApkEntity;
|
||||
import com.gh.gamecenter.entity.DismissEntity;
|
||||
@ -46,7 +46,7 @@ import java.util.concurrent.LinkedBlockingQueue;
|
||||
public class SubjectActivity extends BaseActivity {
|
||||
|
||||
private RecyclerView hotcard_list;
|
||||
private HotCardAdapter adapter;
|
||||
private SubjectAdapter adapter;
|
||||
private LinearLayout hotcard_ll_loading;
|
||||
|
||||
// 黄壮华 添加 记录信息的map 修改2015/8/15
|
||||
@ -141,7 +141,7 @@ public class SubjectActivity extends BaseActivity {
|
||||
DownloadItemUtils.initializeGameMap(this, gameMap);
|
||||
|
||||
// 黄壮华 传递引用 修改2015/8/15
|
||||
adapter = new HotCardAdapter(this, platformMap, statusMap, dismissEntity);
|
||||
adapter = new SubjectAdapter(this, platformMap, statusMap, dismissEntity);
|
||||
hotcard_list.setAdapter(adapter);
|
||||
hotcard_list.addItemDecoration(new VerticalItemDecoration(this, 1));
|
||||
|
||||
|
||||
@ -36,8 +36,7 @@ import java.util.concurrent.LinkedBlockingQueue;
|
||||
* @update 2015-8-11
|
||||
* @des 首页插件fragment适配器
|
||||
*/
|
||||
public class HotCardAdapter extends
|
||||
RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
||||
public class SubjectAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
|
||||
|
||||
private Context context;
|
||||
|
||||
@ -51,9 +50,9 @@ public class HotCardAdapter extends
|
||||
private DismissEntity dismissEntity;
|
||||
|
||||
// 黄壮华 获取引用 修改2015/8/15
|
||||
public HotCardAdapter(Context context,
|
||||
ArrayMap<String, LinkedBlockingQueue<String>> pMap,
|
||||
ArrayMap<String, String> sMap, DismissEntity dEntity) {
|
||||
public SubjectAdapter(Context context,
|
||||
ArrayMap<String, LinkedBlockingQueue<String>> pMap,
|
||||
ArrayMap<String, String> sMap, DismissEntity dEntity) {
|
||||
|
||||
// 黄壮华 获取引用 修改2015/8/15
|
||||
platformMap = pMap;
|
||||
@ -165,7 +164,7 @@ public class HotCardAdapter extends
|
||||
DownloadItemUtils.setOnClickListener(context,
|
||||
holder.downloadBtn, holder.download_speed,
|
||||
holder.download_percentage, entity, position,
|
||||
HotCardAdapter.this,
|
||||
SubjectAdapter.this,
|
||||
statusMap, platformMap, "主页-新测卡牌",
|
||||
dismissEntity, "主页:" + entity.getName());
|
||||
} else {
|
||||
@ -181,7 +180,7 @@ public class HotCardAdapter extends
|
||||
DownloadItemUtils.setOnClickListener(context,
|
||||
holder.downloadBtn, holder.download_speed,
|
||||
holder.download_percentage, entity, position,
|
||||
HotCardAdapter.this, statusMap, platformMap,
|
||||
SubjectAdapter.this, statusMap, platformMap,
|
||||
"主页-新测卡牌", dismissEntity,
|
||||
"主页:" + entity.getName());
|
||||
}
|
||||
Reference in New Issue
Block a user