<commit_before>package com.king.applib.ui.recyclerview.listener;

import android.support.v4.view.GestureDetectorCompat;
import android.support.v7.widget.RecyclerView;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;

/**
 * RecyclerView Item 事件处理
 *
 * @author VanceKing
 * @since 2018/1/10.
 */

public class RecyclerItemTouchListener extends RecyclerView.SimpleOnItemTouchListener {
    private final GestureDetectorCompat gestureDetectorCompat;

    public RecyclerItemTouchListener(RecyclerView recyclerView, OnRecyclerItemListener clickListener) {
        gestureDetectorCompat = new GestureDetectorCompat(recyclerView.getContext(), new RecyclerGestureListener(recyclerView, clickListener));
    }

    @Override
    public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) {
        gestureDetectorCompat.onTouchEvent(e);
        return false;
    }
<commit_msg>[refactor] RecyclerView 点击<commit_after>package com.king.applib.ui.recyclerview.listener;

import android.support.annotation.NonNull;
import android.support.v4.view.GestureDetectorCompat;
import android.support.v7.widget.RecyclerView;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;

/**
 * RecyclerView Item 事件处理
 *
 * @author VanceKing
 * @since 2018/1/10.
 */

public class RecyclerItemTouchListener extends RecyclerView.SimpleOnItemTouchListener {
    private final GestureDetectorCompat gestureDetectorCompat;

    public RecyclerItemTouchListener(RecyclerView recyclerView, OnRecyclerItemListener clickListener) {
        gestureDetectorCompat = new GestureDetectorCompat(recyclerView.getContext(), new RecyclerGestureListener(recyclerView, clickListener));
    }

    @Override
    public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) {
        gestureDetectorCompat.onTouchEvent(e);
        return false;
    }

    @Override
    public void onTouchEvent(@NonNull RecyclerView rv, @NonNull MotionEvent e) {
        gestureDetectorCompat.onTouchEvent(e);
    }

{'fraction_non_alphanumeric': 0.07867897037396794, 'fraction_numerical': 0.008742107819329771, 'mean_word_length': 5.167664670658683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2502467', 'n_tokens_mistral': 639, 'n_tokens_neox': 602, 'n_words': 112}