Commit 3a6eca3c authored by ianwen's avatar ianwen Committed by Commit bot

[Android]Fix a regression where native pages hide tab strip on tablet

CompositorViewHolder should add views with their original layout params,
rather than creating a new one every time.

BUG=679998

Review-Url: https://codereview.chromium.org/2628033002
Cr-Commit-Position: refs/heads/master@{#443016}
parent 2fa22cff
......@@ -832,8 +832,7 @@ public class CompositorViewHolder extends FrameLayout
}
// CompositorView always has index of 0.
addView(mView, 1, new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT,
LayoutParams.MATCH_PARENT));
addView(mView, 1);
setFocusable(false);
setFocusableInTouchMode(false);
......
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