mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1180907 - Mutate search label before tinting it. r=sebastian
If we don't mutate, we're tinting the shared Drawable state and other Drawables using the same asset might also get tinted.
This commit is contained in:
parent
9aa228ed20
commit
aa9af0f5f1
@ -175,7 +175,8 @@ public class SearchEngineBar extends TwoWayView
|
||||
view = LayoutInflater.from(getContext()).inflate(R.layout.search_engine_bar_label, parent, false);
|
||||
}
|
||||
|
||||
Drawable icon = DrawableCompat.wrap(ContextCompat.getDrawable(parent.getContext(), R.drawable.search_icon_active));
|
||||
final Drawable icon = DrawableCompat.wrap(
|
||||
ContextCompat.getDrawable(parent.getContext(), R.drawable.search_icon_active).mutate());
|
||||
DrawableCompat.setTint(icon, getResources().getColor(R.color.disabled_grey));
|
||||
|
||||
final ImageView iconView = (ImageView) view.findViewById(R.id.search_engine_label);
|
||||
|
Loading…
Reference in New Issue
Block a user