|
|
@@ -41,8 +41,6 @@ public class ContentsAdapter extends RecyclerView.Adapter<ContentsHolder> {
|
|
|
private SeriesItemBean seriesInfo;
|
|
|
private final String listType;
|
|
|
private final String contentsNo; // 현재 컨텐츠 와 비교하기 위해서 필요
|
|
|
- private int screenWidth;
|
|
|
- private int screenHeight;
|
|
|
|
|
|
private static final int LISTICLE_COVER = 0;
|
|
|
private static final int LISTICLE_DETAIL = 1;
|
|
|
@@ -59,8 +57,6 @@ public class ContentsAdapter extends RecyclerView.Adapter<ContentsHolder> {
|
|
|
public ContentsAdapter(Activity activity,
|
|
|
String contentsNo,
|
|
|
String listType,
|
|
|
- int screenWidth,
|
|
|
- int screenHeight,
|
|
|
List<ContentsItemBean> contentsItemBeans,
|
|
|
List<SeriesItemBean> seriesItemBeans,
|
|
|
SeriesItemBean seriesInfo,
|
|
|
@@ -75,8 +71,6 @@ public class ContentsAdapter extends RecyclerView.Adapter<ContentsHolder> {
|
|
|
this.seriesInfo = seriesInfo;
|
|
|
this.listType = listType;
|
|
|
this.contentsNo = contentsNo;
|
|
|
- this.screenWidth = screenWidth;
|
|
|
- this.screenHeight = screenHeight;
|
|
|
}
|
|
|
|
|
|
@NonNull
|
|
|
@@ -86,7 +80,7 @@ public class ContentsAdapter extends RecyclerView.Adapter<ContentsHolder> {
|
|
|
switch (viewType) {
|
|
|
case LISTICLE_COVER:
|
|
|
view = inflater.inflate(R.layout.contents_listicle_cover, parent, false);
|
|
|
- return new ContentsListicleCoverHolder(view, hasSeries() ? contentsItemBeans.get(0).getSeriesTitle() : "", screenWidth, screenHeight);
|
|
|
+ return new ContentsListicleCoverHolder(view, hasSeries() ? contentsItemBeans.get(0).getSeriesTitle() : "");
|
|
|
case LISTICLE_DETAIL:
|
|
|
view = inflater.inflate(R.layout.contents_listicle_detail, parent, false);
|
|
|
return new ContentsListicleHolder(view, activity);
|
|
|
@@ -100,7 +94,7 @@ public class ContentsAdapter extends RecyclerView.Adapter<ContentsHolder> {
|
|
|
/* falls through */
|
|
|
case CARD_LISTICLE_COVER:
|
|
|
view = inflater.inflate(R.layout.contents_card_listicle_cover, parent, false);
|
|
|
- return new ContentsCardCoverHolder(view, screenWidth, screenHeight);
|
|
|
+ return new ContentsCardCoverHolder(view);
|
|
|
case CARD_DETAIL:
|
|
|
view = inflater.inflate(R.layout.contents_card_listicle_detail, parent, false);
|
|
|
return new ContentsCardHolder(view);
|