mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 2d8cdd7baa58 (bug 918007) for test failures on a CLOSED TREE
This commit is contained in:
parent
7e13868cf8
commit
7ffd053b7a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user