Backed out changeset 2d8cdd7baa58 (bug 918007) for test failures on a CLOSED TREE
authorEd Morley <emorley@mozilla.com>
Wed, 23 Oct 2013 15:56:00 +0100
changeset 166573 2c803fb352c95b7343cb869885d75ef975feb1ba
parent 166572 5bafaa6987eb597dc19081bb27e1b1059cf2f2c8
child 166574 dad5e53c31a95ac586a67ca04555ff5757c91e54
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs918007
milestone27.0a1
backs out2d8cdd7baa58bfab0b5cd805e555f4bdb26a4c9b
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 2d8cdd7baa58 (bug 918007) for test failures on a CLOSED TREE
mobile/android/base/BrowserToolbar.java
--- a/mobile/android/base/BrowserToolbar.java
+++ b/mobile/android/base/BrowserToolbar.java
@@ -1559,27 +1559,22 @@ public class BrowserToolbar extends Geck
         int newInputType = StringUtils.isSearchQuery(text, false)
                            ? (currentInputType & ~InputType.TYPE_TEXT_VARIATION_URI) // Text mode
                            : (currentInputType | InputType.TYPE_TEXT_VARIATION_URI); // URL mode
         if (newInputType != currentInputType) {
             mUrlEditText.setRawInputType(newInputType);
         }
     }
 
-    public void setButtonEnabled(ImageButton button, boolean enabled) {
-        final Drawable drawable = button.getDrawable();
-        if (drawable != null) {
-            drawable.setAlpha(enabled ? 255 : 61);
-        }
+    public void updateBackButton(boolean enabled) {
+         Drawable drawable = mBack.getDrawable();
+         if (drawable != null)
+             drawable.setAlpha(enabled ? 255 : 77);
 
-        button.setEnabled(enabled);
-    }
-
-    public void updateBackButton(boolean enabled) {
-        setButtonEnabled(mBack, enabled);
+         mBack.setEnabled(enabled);
     }
 
     public void updateForwardButton(final boolean enabled) {
         if (mForward.isEnabled() == enabled)
             return;
 
         // Save the state on the forward button so that we can skip animations
         // when there's nothing to change