Clean up custom tab toolbar ellisizing and animation
commit444738fe2024c5df902b43d7266f1ba4d241b809
authorianwen <ianwen@chromium.org>
Wed, 8 Jul 2015 20:43:18 +0000 (8 13:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Jul 2015 20:44:01 +0000 (8 20:44 +0000)
treee76a634705835024b7917d2a81bb37bb5710b9e7
parent0426cca246d3d4ecd48665689205ed554ebf0b7d
Clean up custom tab toolbar ellisizing and animation

This CL uses android:ellipsize to let the title bar show '...' if it is
too long.

This CL also fixes a bug that if updateSecurityIcon() is called twice
quickly, we double show the urlbar animation.

BUG=506326

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

Cr-Commit-Position: refs/heads/master@{#337901}
chrome/android/java/res/layout/custom_tabs_toolbar.xml
chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java