From c2a20ff0a87f58b2be66f067b0024db7ff5185d3 Mon Sep 17 00:00:00 2001 From: Peter Schiller Date: Thu, 7 Jul 2016 14:47:05 -0700 Subject: Consolidate all the dividers to provide same look and feel Bug: 30017936 Change-Id: I072cb116dba1df555a63f3f67b730f7f9c3a235a --- src/com/android/launcher3/BaseRecyclerView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/launcher3/BaseRecyclerView.java') diff --git a/src/com/android/launcher3/BaseRecyclerView.java b/src/com/android/launcher3/BaseRecyclerView.java index f8ef1e156..4cb050e24 100644 --- a/src/com/android/launcher3/BaseRecyclerView.java +++ b/src/com/android/launcher3/BaseRecyclerView.java @@ -264,7 +264,7 @@ public abstract class BaseRecyclerView extends RecyclerView // Calculate the current scroll position, the scrollY of the recycler view accounts for the // view padding, while the scrollBarY is drawn right up to the background padding (ignoring // padding) - int scrollY = getScrollTop(scrollPosState); + int scrollY = Math.max(0, getScrollTop(scrollPosState)); int scrollBarY = mBackgroundPadding.top + (int) (((float) scrollY / availableScrollHeight) * availableScrollBarHeight); -- cgit v1.2.3