Using requestDisallowInterceptTouchEvent to scroll RecyclerView inside RecyclerView blocks scrolling parent

I am using a RecyclerView inside a RecyclerView. I want to be able to scroll through both. Therefore I included this answer to my child RecyclerView, which worked... kind of. I can scroll the child, but when I stop scrolling and want to scroll the child again, I have to tap on the parent first before being able to scroll the child or the parent again. See the video. Also interesting is the fact that the parent is moved immediately like in the video. I usually have to long-press to move an item. And when I raise my finger to stop scrolling the child but continue scrolling immediately, I can scroll the child without touching the parent first. But I have to continue very fast (before the tap animation is finished). I am very confused about this behavior. Can someone fix this?

the problem

I tried to set requestDisallowInterceptTouchEvent to false too, but it didn't fix the problem.

RecyclerView.OnItemTouchListener scrollTouchListener = new RecyclerView.OnItemTouchListener() {
        @Override
        public boolean onInterceptTouchEvent(@NonNull RecyclerView recyclerView, MotionEvent e) {
            int action = e.getAction();
            Log.d("Output> ", "" + action);
            switch (action) {
                case MotionEvent.ACTION_DOWN:
                    recyclerView.getParent().requestDisallowInterceptTouchEvent(true);
                    break;
                case MotionEvent.ACTION_CANCEL:
                case MotionEvent.ACTION_UP:
                    recyclerView.getParent().requestDisallowInterceptTouchEvent(false);
                    break;
            }
            return false;
        }

        @Override
        public void onTouchEvent(@NonNull RecyclerView recyclerView, @NonNull MotionEvent e) {

        }

        @Override
        public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {

        }
    };
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum