Commit 5abfe71f authored by Becky Zhou's avatar Becky Zhou Committed by Commit Bot

[Feed] Add bottom padding on Feed NTP when Duet is enabled

Bug: 887614
Change-Id: I58bd8cf6ff9f6a59d52db2ef09fab9e0f0b48a66
Reviewed-on: https://chromium-review.googlesource.com/1239443
Commit-Queue: Becky Zhou <huayinz@chromium.org>
Reviewed-by: default avatarTheresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593392}
parent 56437421
......@@ -243,10 +243,12 @@ public class FeedNewTabPage extends NewTabPage {
@Override
protected void initializeMainView(Context context) {
int topPadding = context.getResources().getDimensionPixelOffset(R.dimen.tab_strip_height);
int bottomPadding = mTab.getActivity().getFullscreenManager().getBottomControlsHeight();
mRootView = new RootView(context);
mRootView.setLayoutParams(new FrameLayout.LayoutParams(
FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT));
mRootView.setPadding(0, topPadding, 0, 0);
mRootView.setPadding(0, topPadding, 0, bottomPadding);
mUiConfig = new UiConfig(mRootView);
}
......
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