From dafdc3d9d28ceb39b1168774df9868ead89c5cb2 Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Fri, 12 Jan 2018 16:47:29 +0200 Subject: [PATCH] Change button icon color on tap in osm edits context menu --- .../src/net/osmand/plus/osmedit/EditPOIMenuController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuController.java b/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuController.java index 4808a06256..0daa3cbb6a 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuController.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/EditPOIMenuController.java @@ -1,7 +1,6 @@ package net.osmand.plus.osmedit; import android.content.DialogInterface; -import android.graphics.drawable.Drawable; import android.support.v7.app.AlertDialog; import net.osmand.data.PointDescription; @@ -43,7 +42,7 @@ public class EditPOIMenuController extends MenuController { } }; leftTitleButtonController.caption = getMapActivity().getString(R.string.shared_string_upload); - leftTitleButtonController.leftIconId = R.drawable.ic_action_export; + leftTitleButtonController.updateStateListDrawableIcon(R.drawable.ic_action_export, true); rightTitleButtonController = new TitleButtonController() { @Override @@ -73,7 +72,7 @@ public class EditPOIMenuController extends MenuController { } }; rightTitleButtonController.caption = getMapActivity().getString(R.string.shared_string_delete); - rightTitleButtonController.leftIconId = R.drawable.ic_action_delete_dark; + rightTitleButtonController.updateStateListDrawableIcon(R.drawable.ic_action_delete_dark, true); category = getCategory();