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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsRecyclerView.java

Issue 2780693002: [Home] Toolbar shadow v1 (Closed)
Patch Set: dfalcantara@ review Created 3 years, 9 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/suggestions/SuggestionsRecyclerView.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsRecyclerView.java b/chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsRecyclerView.java
index 672e674e8ba65f226a5d6841b8f2b0e107e1002e..3f3a311e524d8c1877529d59c6c689a7710347fc 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsRecyclerView.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsRecyclerView.java
@@ -17,6 +17,7 @@ import android.support.v7.view.ContextThemeWrapper;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.helper.ItemTouchHelper;
+import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
@@ -74,7 +75,11 @@ public class SuggestionsRecyclerView extends RecyclerView implements TouchDisabl
private boolean mTouchEnabled = true;
public SuggestionsRecyclerView(Context context) {
- super(new ContextThemeWrapper(context, R.style.NewTabPageRecyclerView));
+ this(context, null);
+ }
+
+ public SuggestionsRecyclerView(Context context, AttributeSet attrs) {
+ super(new ContextThemeWrapper(context, R.style.NewTabPageRecyclerView), attrs);
Resources res = getContext().getResources();
setBackgroundColor(ApiCompatibilityUtils.getColor(res, R.color.ntp_bg));

Powered by Google App Engine
This is Rietveld 408576698