Skip to content

Commit 51a8f70

Browse files
committed
feat: disable logs horizontal overscroll
1 parent 5e6acd0 commit 51a8f70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/org/lsposed/manager/ui/fragment/LogsFragment.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,9 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
370370
horizontalScrollView.setFillViewport(true);
371371
horizontalScrollView.setHorizontalScrollBarEnabled(false);
372372
horizontalScrollView.setLayoutDirection(View.LAYOUT_DIRECTION_LTR);
373+
if (!AccessibilityUtils.isAnimationEnabled(requireContext().getContentResolver())) {
374+
horizontalScrollView.setOverScrollMode(View.OVER_SCROLL_NEVER);
375+
}
373376
binding.swipeRefreshLayout.addView(horizontalScrollView);
374377
horizontalScrollView.addView(binding.recyclerView);
375378
binding.recyclerView.getLayoutParams().width = ViewGroup.LayoutParams.WRAP_CONTENT;

0 commit comments

Comments
 (0)