How to disable and enable the recyclerview scrolling
<p>I want to disable recyclerview scrolling in landscape mode and enable it in the portrait mode.</p>

<pre><code> recyclerView.addOnItemTouchListener(new RecyclerView.SimpleOnItemTouchListener() {
        @Override
        public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) {
            // Stop only scrolling.
            return rv.getScrollState() == RecyclerView.SCROLL_STATE_DRAGGING;
        }
    });
</code></pre>

<p>I am using this method to disable scrolling but can't find a way to enable it again.</p>

<p>Thanks for any help!</p>