From f12e9f7d311bffebb76a7b3b339dbe0b5edb9a7a Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Fri, 12 Jan 2018 16:52:33 +0200 Subject: [PATCH] Change button icon color on tap in parking context menu --- .../plus/parkingpoint/ParkingPositionMenuController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/parkingpoint/ParkingPositionMenuController.java b/OsmAnd/src/net/osmand/plus/parkingpoint/ParkingPositionMenuController.java index 61badd42bb..4d1351c1ec 100644 --- a/OsmAnd/src/net/osmand/plus/parkingpoint/ParkingPositionMenuController.java +++ b/OsmAnd/src/net/osmand/plus/parkingpoint/ParkingPositionMenuController.java @@ -1,7 +1,6 @@ package net.osmand.plus.parkingpoint; import android.graphics.drawable.Drawable; -import android.text.TextUtils; import net.osmand.data.PointDescription; import net.osmand.plus.OsmandPlugin; @@ -32,7 +31,7 @@ public class ParkingPositionMenuController extends MenuController { } }; leftTitleButtonController.caption = getMapActivity().getString(R.string.shared_string_delete); - leftTitleButtonController.leftIconId = R.drawable.ic_action_delete_dark; + leftTitleButtonController.updateStateListDrawableIcon(R.drawable.ic_action_delete_dark, true); } private void buildParkingDescription(MapActivity mapActivity) {