From 76685eb092631cd276e3224bd4a100f8adeed8fe Mon Sep 17 00:00:00 2001 From: Ruben Sousa Date: Fri, 31 May 2024 01:18:07 +0200 Subject: [PATCH] Fix DpadScroller resetting the scroll position --- .../main/java/com/rubensousa/dpadrecyclerview/DpadScroller.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/dpadrecyclerview/src/main/java/com/rubensousa/dpadrecyclerview/DpadScroller.kt b/dpadrecyclerview/src/main/java/com/rubensousa/dpadrecyclerview/DpadScroller.kt index 9fdf4883..7bd53b00 100644 --- a/dpadrecyclerview/src/main/java/com/rubensousa/dpadrecyclerview/DpadScroller.kt +++ b/dpadrecyclerview/src/main/java/com/rubensousa/dpadrecyclerview/DpadScroller.kt @@ -44,6 +44,7 @@ class DpadScroller( detach() this.recyclerView = recyclerView recyclerView.descendantFocusability = ViewGroup.FOCUS_BLOCK_DESCENDANTS + recyclerView.setLayoutWhileScrollingEnabled(true) recyclerView.setOnKeyInterceptListener(keyListener) }