Commit 420fad02 authored by Ted Choc's avatar Ted Choc Committed by Commit Bot

Restrict NTP fakebox ripple to P+.

Pre-P there is a problem with the ripple now growing
with the omnibox as it expands from the fakebox to the
omnibox at the top.

Limit to P+ while we investigate other solutions to
enable this on older versions.

Original CL to compare what was enabled:
https://chromium-review.googlesource.com/c/chromium/src/+/1054851/

BUG=878135

Change-Id: I2a45b398e7b67cf3a1b95aeea807485bcadc9968
Reviewed-on: https://chromium-review.googlesource.com/c/1334278Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Ted Choc <tedchoc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607759}
parent cab897cb
......@@ -2353,9 +2353,11 @@ public class ToolbarPhone
if (mVisibleNewTabPage != null && mVisibleNewTabPage.isLocationBarShownInNTP()) {
mVisibleNewTabPage.setSearchBoxScrollListener(this);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
NtpSearchBoxDrawable ntpSearchBox = new NtpSearchBoxDrawable(getContext(), this);
mVisibleNewTabPage.setSearchBoxBackground(ntpSearchBox);
mActiveLocationBarBackground = ntpSearchBox;
}
requestLayout();
} else if (wasShowingNtp) {
......
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