| Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetItemDecoration.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetItemDecoration.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetItemDecoration.java
|
| index b80bb70649e738b23fcda715af141aa235615927..e7590a127ebfbda10365ba73f848266fadee88a6 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetItemDecoration.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetItemDecoration.java
|
| @@ -17,7 +17,10 @@ public class SnippetItemDecoration extends RecyclerView.ItemDecoration {
|
| @Override
|
| public void getItemOffsets(Rect outRect, View view, RecyclerView parent,
|
| RecyclerView.State state) {
|
| + // Reset the bounds of the outRect.
|
| outRect.setEmpty();
|
| +
|
| + // Do not add a vertical space to the last item.
|
| if (parent.getChildAdapterPosition(view) != parent.getAdapter().getItemCount() - 1) {
|
| outRect.bottom = VERTICAL_SPACE;
|
| }
|
|
|