Backed out changeset 2d8cdd7baa58 (bug 918007) for test failures on a CLOSED TREE

This commit is contained in:
Ed Morley 2013-10-23 15:56:00 +01:00
parent 7e13868cf8
commit 7ffd053b7a

View File

@ -1564,17 +1564,12 @@ public class BrowserToolbar extends GeckoRelativeLayout
}
}
public void setButtonEnabled(ImageButton button, boolean enabled) {
final Drawable drawable = button.getDrawable();
if (drawable != null) {
drawable.setAlpha(enabled ? 255 : 61);
}
button.setEnabled(enabled);
}
public void updateBackButton(boolean enabled) {
setButtonEnabled(mBack, enabled);
Drawable drawable = mBack.getDrawable();
if (drawable != null)
drawable.setAlpha(enabled ? 255 : 77);
mBack.setEnabled(enabled);
}
public void updateForwardButton(final boolean enabled) {