diff --git a/mobile/android/base/BrowserToolbar.java b/mobile/android/base/BrowserToolbar.java index a203cd5e5166..c1e870dca26b 100644 --- a/mobile/android/base/BrowserToolbar.java +++ b/mobile/android/base/BrowserToolbar.java @@ -66,7 +66,7 @@ public class BrowserToolbar implements Tabs.OnTabsChangedListener, public static final String PREF_TITLEBAR_MODE = "browser.chrome.titlebarMode"; private GeckoRelativeLayout mLayout; private LayoutParams mAwesomeBarParams; - private View mAwesomeBarContent; + private View mUrlDisplayContainer; private View mAwesomeBarEntry; private ImageView mAwesomeBarRightEdge; private BrowserToolbarBackground mAddressBarBg; @@ -228,7 +228,7 @@ public class BrowserToolbar implements Tabs.OnTabsChangedListener, mAddressBarBg = (BrowserToolbarBackground) mLayout.findViewById(R.id.address_bar_bg); mAddressBarViewOffset = mActivity.getResources().getDimensionPixelSize(R.dimen.addressbar_offset_left); mDefaultForwardMargin = mActivity.getResources().getDimensionPixelSize(R.dimen.forward_default_offset); - mAwesomeBarContent = mLayout.findViewById(R.id.awesome_bar_content); + mUrlDisplayContainer = mLayout.findViewById(R.id.awesome_bar_display_container); mAwesomeBarEntry = mLayout.findViewById(R.id.awesome_bar_entry); // This will clip the right edge's image at half of its width @@ -1035,9 +1035,9 @@ public class BrowserToolbar implements Tabs.OnTabsChangedListener, // Set the margin before the transition when hiding the forward button. We // have to do this so that the favicon isn't clipped during the transition ViewGroup.MarginLayoutParams layoutParams = - (ViewGroup.MarginLayoutParams)mAwesomeBarContent.getLayoutParams(); + (ViewGroup.MarginLayoutParams)mUrlDisplayContainer.getLayoutParams(); layoutParams.leftMargin = 0; - mAwesomeBarContent.requestLayout(); + mUrlDisplayContainer.requestLayout(); // Note, we already translated the favicon, site security, and text field // in prepareForwardAnimation, so they should appear to have not moved at // all at this point. @@ -1048,7 +1048,7 @@ public class BrowserToolbar implements Tabs.OnTabsChangedListener, public void onPropertyAnimationEnd() { if (enabled) { ViewGroup.MarginLayoutParams layoutParams = - (ViewGroup.MarginLayoutParams)mAwesomeBarContent.getLayoutParams(); + (ViewGroup.MarginLayoutParams)mUrlDisplayContainer.getLayoutParams(); layoutParams.leftMargin = mAddressBarViewOffset; ViewHelper.setTranslationX(mTitle, 0); @@ -1061,7 +1061,7 @@ public class BrowserToolbar implements Tabs.OnTabsChangedListener, layoutParams.leftMargin = mDefaultForwardMargin + (mForward.isEnabled() ? mForward.getWidth() / 2 : 0); ViewHelper.setTranslationX(mForward, 0); - mAwesomeBarContent.requestLayout(); + mUrlDisplayContainer.requestLayout(); mForwardAnim = null; } }); diff --git a/mobile/android/base/resources/layout-large-v11/browser_toolbar.xml b/mobile/android/base/resources/layout-large-v11/browser_toolbar.xml index 41a49dd6fff6..b5c9d9d23eaa 100644 --- a/mobile/android/base/resources/layout-large-v11/browser_toolbar.xml +++ b/mobile/android/base/resources/layout-large-v11/browser_toolbar.xml @@ -69,7 +69,7 @@ android:contentDescription="@string/back" android:background="@drawable/address_bar_nav_button"/> - diff --git a/mobile/android/base/resources/layout/browser_toolbar.xml b/mobile/android/base/resources/layout/browser_toolbar.xml index 618fbc539613..44c316e560ab 100644 --- a/mobile/android/base/resources/layout/browser_toolbar.xml +++ b/mobile/android/base/resources/layout/browser_toolbar.xml @@ -97,7 +97,7 @@ android:layout_marginTop="12dip" android:layout_alignRight="@id/tabs"/> -