Change button icon color on tap in parking context menu

This commit is contained in:
Alexander Sytnyk 2018-01-12 16:52:33 +02:00
parent dafdc3d9d2
commit f12e9f7d31

View file

@ -1,7 +1,6 @@
package net.osmand.plus.parkingpoint; package net.osmand.plus.parkingpoint;
import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import net.osmand.data.PointDescription; import net.osmand.data.PointDescription;
import net.osmand.plus.OsmandPlugin; import net.osmand.plus.OsmandPlugin;
@ -32,7 +31,7 @@ public class ParkingPositionMenuController extends MenuController {
} }
}; };
leftTitleButtonController.caption = getMapActivity().getString(R.string.shared_string_delete); 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) { private void buildParkingDescription(MapActivity mapActivity) {