Bug 818072: Back/Forward looks disabled. [r=mfinkle] [needs-clobber]
authorSriram Ramasubramanian <sriram@mozilla.com>
Thu, 07 Feb 2013 14:23:33 -0800
changeset 131113 46d7188acb0c17a6d3320cac21b5cbc41be454c7
parent 131112 e935184c6944a5540e02827e4a6bba8cfa541e6b
child 131114 c362e5037dcc16ba796015f8600414a32b3fb55f
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs818072
milestone21.0a1
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
Bug 818072: Back/Forward looks disabled. [r=mfinkle] [needs-clobber]
mobile/android/base/BrowserToolbar.java
--- a/mobile/android/base/BrowserToolbar.java
+++ b/mobile/android/base/BrowserToolbar.java
@@ -999,17 +999,20 @@ public class BrowserToolbar implements V
         setPageActionVisibility(mStop.getVisibility() == View.VISIBLE);
     }
 
     public void requestFocusFromTouch() {
         mLayout.requestFocusFromTouch();
     }
 
     public void updateBackButton(boolean enabled) {
-         mBack.setColorFilter(enabled ? 0 : 0xFF999999);
+         Drawable drawable = mBack.getDrawable();
+         if (drawable != null)
+             drawable.setAlpha(enabled ? 255 : 77);
+
          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