| Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java
|
| index 33cf29924015c9079503ea1637b8e3f1cc23f9d2..c26a9d2c965eb890ca958d6d003902f20f819131 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java
|
| @@ -279,7 +279,7 @@ public class NewTabPageView extends FrameLayout
|
| void removeContextMenuCloseCallback(Callback<Menu> callback);
|
|
|
| /**
|
| - * Makes the {@link Activity} close any open context menu.
|
| + * Makes the activity close any open context menu.
|
| */
|
| void closeContextMenu();
|
|
|
| @@ -355,7 +355,7 @@ public class NewTabPageView extends FrameLayout
|
| stub.setLayoutResource(R.layout.new_tab_page_scroll_view);
|
| mScrollView = (NewTabPageScrollView) stub.inflate();
|
| mScrollView.setBackgroundColor(
|
| - NtpStyleUtils.getBackgroundColorResource(getResources(), false));
|
| + ApiCompatibilityUtils.getColor(getResources(), R.color.ntp_bg));
|
| mScrollView.enableBottomShadow(SHADOW_COLOR);
|
| mNewTabPageLayout = (NewTabPageLayout) findViewById(R.id.ntp_content);
|
| }
|
| @@ -388,7 +388,8 @@ public class NewTabPageView extends FrameLayout
|
| mRecyclerView.scrollToPosition(scrollPosition);
|
|
|
| if (CardsVariationParameters.isScrollBelowTheFoldEnabled()) {
|
| - int searchBoxHeight = NtpStyleUtils.getSearchBoxHeight(getResources());
|
| + int searchBoxHeight =
|
| + getResources().getDimensionPixelSize(R.dimen.ntp_search_box_height);
|
| mRecyclerView.getLinearLayoutManager().scrollToPositionWithOffset(
|
| mNewTabPageAdapter.getFirstHeaderPosition(), searchBoxHeight);
|
| }
|
|
|