浏览代码

[카테고리][New] thiw week 는 1 페이지 (20개) 만 로드함

hyodong.min 6 年之前
父节点
当前提交
cd7157e029

+ 8 - 22
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/category/type5/FifthCategoryMainModel.java

@@ -3,12 +3,6 @@
  */
 package kr.co.zumo.app.lifeplus.view.screen.category.type5;
 
-import android.util.Log;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import kr.co.zumo.app.lifeplus.bean.api.CategoryContentsBean;
 import kr.co.zumo.app.lifeplus.view.screen.category.CategoryID;
 import kr.co.zumo.app.lifeplus.view.screen.category.CategoryMainModel;
 
@@ -53,22 +47,14 @@ public class FifthCategoryMainModel extends CategoryMainModel {
 
   }
 
-  @Override
-  public List<CategoryContentsBean> getContents() {
-    if (null == contentsBeans) {
-      contentsBeans = new ArrayList<>();
-    }
-
-    // fixme 20개로 제한 -----------------------
-    int size = contentsBeans.size();
-    int max = 20;
-    if (size > max) {
-      contentsBeans = contentsBeans.subList(0, max);
-      Log.e("APP#  FifthCategoryMainModel | modifyContents", "|" + "resizing => " + contentsBeans.size());
-    }
-    // --------------------------------------
-
-    return contentsBeans;
+  /**
+   * 다음 페이지 있는지 확인
+   *
+   * @return
+   */
+  public boolean hasNextPage() {
+    // this week 는 20개 제한
+    return false;
   }
 
 }