瀏覽代碼

[컨텐츠상세][Common] 테스트 요청 사항 반영

Hasemi 6 年之前
父節點
當前提交
4ad9526536

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

@@ -11,7 +11,6 @@ import android.support.v7.widget.LinearSmoothScroller;
 import android.support.v7.widget.RecyclerView;
 import android.util.DisplayMetrics;
 import android.view.LayoutInflater;
-import android.view.MotionEvent;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.TextView;
@@ -32,7 +31,6 @@ import kr.co.zumo.app.lifeplus.view.IEventListener;
 import kr.co.zumo.app.lifeplus.view.IndexScrollListener;
 import kr.co.zumo.app.lifeplus.view.custom.Tutorial;
 import kr.co.zumo.app.lifeplus.view.screen.FragmentBase;
-import kr.co.zumo.app.lifeplus.view.screen.main.TouchEventWithDirection;
 
 /**
  * ContentsFragment
@@ -72,33 +70,6 @@ public class ContentsFragment extends FragmentBase<ContentsPresenter> implements
 
     snapHelper = new CustomPagerSnapHelper();
     snapHelper.attachToRecyclerView(recyclerViewContentsDetail);
-
-    TouchEventWithDirection touchEventWithDirection = new TouchEventWithDirection(100);
-
-    recyclerViewContentsDetail.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() {
-      @Override
-      public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent motionEvent) {
-        if (null != layoutManager && layoutManager.findFirstVisibleItemPosition() == adapter.getItemCount() - 1) {
-          if (TouchEventWithDirection.DIRECTION_LEFT.equals(direction) && motionEvent.getAction() == MotionEvent.ACTION_UP) {
-            presenter.onEvent(new Event.Builder(Event.LAST).build());
-            direction = null;
-          }
-          else {
-            direction = touchEventWithDirection.getDirection(motionEvent);
-          }
-        }
-        return false;
-      }
-
-      @Override
-      public void onTouchEvent(RecyclerView rv, MotionEvent motionEvent) {
-      }
-
-      @Override
-      public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {
-
-      }
-    });
   }
 
   @Override

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

@@ -186,11 +186,6 @@ public class ContentsPresenter extends ContentsBasePresenter<ContentsModel, ICon
           view.showTutorialListicle();
         }
         break;
-      case Event.LAST:
-//        if (false == model.hasWithShown()) {
-        showLastPageToast();
-//        }
-        break;
       case Event.CLICK_HTML:
         // html 의 자바스크립트를 통해서 전달된 데이터
         HtmlBean htmlBean = event.fromJson(HtmlBean.class);
@@ -471,21 +466,4 @@ public class ContentsPresenter extends ContentsBasePresenter<ContentsModel, ICon
     ContentsWebDeliveryBean contentsWebDeliveryBean = new ContentsWebDeliveryBean(model.getShareContents(), model.getSharePageIndex(), webUrl);
     model.setDeliveryPackaging(contentsWebDeliveryBean);
   }
-
-  private void showLastPageToast() {
-    int stringResource;
-
-    if (model.getContentsType().equals(ContentsItemBean.TYPE_LISTICLE)) {
-      stringResource = R.string.last_contents_listicle;
-    }
-    else {
-      stringResource = R.string.last_contents_card;
-    }
-
-    if (toast != null) {
-      toast.cancel();
-    }
-    toast = Toast.makeText(view.getActivity(), stringResource, Toast.LENGTH_SHORT);
-    toast.show();
-  }
 }