mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1197413 - Don't change alpha when disabling tablet nav buttons. r=sebastian
The enabled/disabled colors are set via ColorStateLists so the alpha is unnecessary.
This commit is contained in:
parent
829ec864c8
commit
8c4b4f0340
@ -173,11 +173,6 @@ abstract class BrowserToolbarTabletBase extends BrowserToolbar {
|
||||
}
|
||||
|
||||
protected static void setButtonEnabled(final ImageButton button, final boolean enabled) {
|
||||
final Drawable drawable = button.getDrawable();
|
||||
if (drawable != null) {
|
||||
drawable.setAlpha(enabled ? 255 : 61);
|
||||
}
|
||||
|
||||
button.setEnabled(enabled);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user