[Android] Prevent over-translating the toolbar buttons on the NTP.
commitfe9e3d0cdbe7138e743d550b5c8dcae8f84c460b
authortedchoc <tedchoc@chromium.org>
Tue, 9 Jun 2015 00:50:29 +0000 (8 17:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 9 Jun 2015 00:52:03 +0000 (9 00:52 +0000)
tree43e7211e9ef0f97ed6f001d57048bac33338ec18
parent7659c9eb92380c97ab6ef939f43f92649ef61b5a
[Android] Prevent over-translating the toolbar buttons on the NTP.

The translation of the toolbar buttons is derived from the scroll amount
of the NTP.  The NTP can scroll farther and result in a positive translation
which is not supported as it pushes the buttons down past the toolbar.

BUG=428091

Review URL: https://codereview.chromium.org/1170883002

Cr-Commit-Position: refs/heads/master@{#333406}
chrome/android/java_staging/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java