Create copy icon
This commit is contained in:
parent
edb4dc19e0
commit
6de0962608
1 changed files with 3 additions and 1 deletions
|
@ -224,8 +224,10 @@ public class PluginsFragment extends BaseOsmAndFragment implements PluginStateLi
|
||||||
pluginDescription.setText(plugin.getDescription());
|
pluginDescription.setText(plugin.getDescription());
|
||||||
|
|
||||||
int color = AndroidUtils.getColorFromAttr(context, R.attr.list_background_color);
|
int color = AndroidUtils.getColorFromAttr(context, R.attr.list_background_color);
|
||||||
|
|
||||||
Drawable pluginIcon = plugin.getLogoResource();
|
Drawable pluginIcon = plugin.getLogoResource();
|
||||||
|
if (pluginIcon.getConstantState() != null) {
|
||||||
|
pluginIcon = pluginIcon.getConstantState().newDrawable().mutate();
|
||||||
|
}
|
||||||
pluginLogo.setImageDrawable(UiUtilities.tintDrawable(pluginIcon, color));
|
pluginLogo.setImageDrawable(UiUtilities.tintDrawable(pluginIcon, color));
|
||||||
pluginLogo.setOnClickListener(new View.OnClickListener() {
|
pluginLogo.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue