Commit 32a96b17 authored by mvanouwerkerk's avatar mvanouwerkerk Committed by Commit bot

Set fixed size to true on NewTabPageRecyclerView.

Its size is not affected by the adapter contents so this can be true,
allowing for internal optimizations.

Review-Url: https://codereview.chromium.org/2399983004
Cr-Commit-Position: refs/heads/master@{#423854}
parent 1969bdf6
...@@ -80,6 +80,8 @@ public class NewTabPageRecyclerView extends RecyclerView { ...@@ -80,6 +80,8 @@ public class NewTabPageRecyclerView extends RecyclerView {
mToolbarHeight = res.getDimensionPixelSize(R.dimen.toolbar_height_no_shadow) mToolbarHeight = res.getDimensionPixelSize(R.dimen.toolbar_height_no_shadow)
+ res.getDimensionPixelSize(R.dimen.toolbar_progress_bar_height); + res.getDimensionPixelSize(R.dimen.toolbar_progress_bar_height);
mMaxHeaderHeight = res.getDimensionPixelSize(R.dimen.snippets_article_header_height); mMaxHeaderHeight = res.getDimensionPixelSize(R.dimen.snippets_article_header_height);
setHasFixedSize(true);
} }
public boolean isFirstItemVisible() { public boolean isFirstItemVisible() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment