Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(832)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SpacingListItem.java

Issue 2245013003: Remove "list item" from Android NTP class names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: x Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SpacingListItem.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SpacingListItem.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SpacingListItem.java
deleted file mode 100644
index e23c0b9101c66397c4b947ea5b318d4c82ab267f..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SpacingListItem.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.chrome.browser.ntp.cards;
-
-import android.content.Context;
-import android.view.View;
-import android.view.ViewGroup;
-
-/**
- * Placeholder item to let the snippets flow to the top of the scroll list even when it does not
- * contain enough of them. It is displayed as a dummy item with variable height that just occupies
- * the remaining space between the last item in the RecyclerView and the bottom of the screen.
- */
-public class SpacingListItem extends SingleItemGroup {
- private static class SpacingListItemView extends View {
- public SpacingListItemView(Context context) {
- super(context);
- }
-
- @Override
- protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
- setMeasuredDimension(
- 0, ((NewTabPageRecyclerView) getParent()).calculateBottomSpacing());
- }
- }
-
- /** Creates the View object for displaying the variable spacing. */
- public static View createView(ViewGroup parent) {
- return new SpacingListItemView(parent.getContext());
- }
-
- @Override
- public int getType() {
- return NewTabPageListItem.VIEW_TYPE_SPACING;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698