| Index: chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java
|
| index 070359cd9b2f36349afced6c68e9e81dba2bbd68..3c6faf3308bf2353524a69d5e7c0a14fdab1b80f 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java
|
| @@ -17,7 +17,6 @@ import android.graphics.Bitmap;
|
| import android.graphics.drawable.BitmapDrawable;
|
| import android.graphics.drawable.ColorDrawable;
|
| import android.text.TextUtils;
|
| -import android.text.TextUtils.TruncateAt;
|
| import android.util.AttributeSet;
|
| import android.util.Pair;
|
| import android.util.TypedValue;
|
| @@ -373,7 +372,7 @@ public class CustomTabToolbar extends ToolbarLayout implements LocationBar,
|
| if (securityLevel == ConnectionSecurityLevel.NONE) {
|
| // TODO(yusufo): Add an animator for hiding as well.
|
| mSecurityButton.setVisibility(GONE);
|
| - } else {
|
| + } else if (mSecurityButton.getVisibility() != View.VISIBLE) {
|
| if (mSecurityButtonShowAnimator.isRunning()) mSecurityButtonShowAnimator.cancel();
|
| mSecurityButtonShowAnimator.start();
|
| mUrlBar.deEmphasizeUrl();
|
| @@ -476,27 +475,6 @@ public class CustomTabToolbar extends ToolbarLayout implements LocationBar,
|
| }
|
|
|
| @Override
|
| - protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
| - if (changed) {
|
| - final int availWidth = mUrlInfoContainer.getMeasuredWidth()
|
| - - ApiCompatibilityUtils.getPaddingStart(mTitleBar)
|
| - - ApiCompatibilityUtils.getPaddingEnd(mTitleBar);
|
| - String currentText = mTitleBar.getText().toString();
|
| - String currentTitle;
|
| - Tab currentTab = getToolbarDataProvider().getTab();
|
| - if (currentTab == null || TextUtils.isEmpty(currentTab.getTitle())) {
|
| - currentTitle = "";
|
| - } else {
|
| - currentTitle = currentTab.getTitle();
|
| - }
|
| - String ellipsizedText = TextUtils.ellipsize(currentTitle,
|
| - mTitleBar.getPaint(), availWidth, TruncateAt.END).toString();
|
| - if (!ellipsizedText.equals(currentText)) mTitleBar.setText(ellipsizedText);
|
| - }
|
| - super.onLayout(changed, left, top, right, bottom);
|
| - }
|
| -
|
| - @Override
|
| public boolean onLongClick(View v) {
|
| int stringResourceId = 0;
|
| if (v == mCloseButton) {
|
|
|