From 6de096260801250faf91db81ae3cdaff48f0ffd9 Mon Sep 17 00:00:00 2001 From: androiddevkotlin <64539346+androiddevkotlin@users.noreply.github.com> Date: Wed, 10 Mar 2021 18:09:10 +0200 Subject: [PATCH] Create copy icon --- OsmAnd/src/net/osmand/plus/activities/PluginsFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/PluginsFragment.java b/OsmAnd/src/net/osmand/plus/activities/PluginsFragment.java index ec863540cf..04666e9607 100644 --- a/OsmAnd/src/net/osmand/plus/activities/PluginsFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/PluginsFragment.java @@ -224,8 +224,10 @@ public class PluginsFragment extends BaseOsmAndFragment implements PluginStateLi pluginDescription.setText(plugin.getDescription()); int color = AndroidUtils.getColorFromAttr(context, R.attr.list_background_color); - Drawable pluginIcon = plugin.getLogoResource(); + if (pluginIcon.getConstantState() != null) { + pluginIcon = pluginIcon.getConstantState().newDrawable().mutate(); + } pluginLogo.setImageDrawable(UiUtilities.tintDrawable(pluginIcon, color)); pluginLogo.setOnClickListener(new View.OnClickListener() { @Override