瀏覽代碼

[공통][Common] PMD Analyze UnusedPrivateField 해결

Hasemi 6 年之前
父節點
當前提交
98ee56a5df

+ 3 - 3
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/recommend/RecommendContentsView.java

@@ -127,8 +127,8 @@ public class RecommendContentsView extends ConstraintLayout {
 
   public void setWithShownPageType(String type) {
     this.type = type;
-    if (null != type) {
-      setTitleArea(type);
+    if (null != this.type) {
+      setTitleArea(this.type);
     }
   }
 
@@ -141,7 +141,7 @@ public class RecommendContentsView extends ConstraintLayout {
       return;
     }
 
-    RecommendContentsViewAdapter recommendContentsViewAdapter = new RecommendContentsViewAdapter(context, withItemList, listener);
+    RecommendContentsViewAdapter recommendContentsViewAdapter = new RecommendContentsViewAdapter(context, this.withItemList, listener);
     recyclerViewRecommendContents.setAdapter(recommendContentsViewAdapter);
 
     OverScrollDecoratorHelper.setUpOverScroll(recyclerViewRecommendContents, OverScrollDecoratorHelper.ORIENTATION_HORIZONTAL);

+ 7 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/contents/ContentsModel.java

@@ -74,6 +74,7 @@ public class ContentsModel extends ContentsBaseModel {
     else {
       return currentPageIndex == 0 ? ShareDialog.TYPE_PAGE_TOTAL : ShareDialog.TYPE_PAGE_CURRENT;
     }
+
   }
 
   @Override
@@ -148,6 +149,11 @@ public class ContentsModel extends ContentsBaseModel {
       disposableSeriesLiked.dispose();
       disposableSeriesLiked = null;
     }
+
+    if (null != disposableLog) {
+      disposableLog.dispose();
+      disposableLog = null;
+    }
   }
 
   public ContentsDetailListBean getContentsDetailListBean() {
@@ -459,4 +465,5 @@ public class ContentsModel extends ContentsBaseModel {
       }
     });
   }
+
 }

+ 0 - 6
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/introduction/guide/GuideAdapter.java

@@ -11,7 +11,6 @@ import kr.co.zumo.app.R;
 import kr.co.zumo.app.lifeplus.model.SuperModel;
 import kr.co.zumo.app.lifeplus.view.Event;
 import kr.co.zumo.app.lifeplus.view.IEventListener;
-import kr.co.zumo.app.lifeplus.view.presenter.Presenter;
 
 /**
  * GuideAdpater
@@ -34,7 +33,6 @@ public class GuideAdapter extends RecyclerView.Adapter<GuideView> {
   private static final int COIN_GUIDE = 4;
   private static final int LAST_VIEW = 5;
 
-  private Presenter presenter;
   private Context context;
   private LayoutInflater inflater;
   private IEventListener listener;
@@ -46,10 +44,6 @@ public class GuideAdapter extends RecyclerView.Adapter<GuideView> {
   }
 
 
-  public void setPresenter(Presenter presenter) {
-    this.presenter = presenter;
-  }
-
   public GuideAdapter(Context context, IEventListener listener) {
     this.context = context;
     this.inflater = (LayoutInflater) this.context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);