From c88a7a8a64b1a6d45fe850117fab9e60aff7fb93 Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Fri, 12 Jan 2018 11:32:53 +0200 Subject: [PATCH] Change button icon color on tap in av notes context menu --- .../plus/audionotes/AudioVideoNoteMenuController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNoteMenuController.java b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNoteMenuController.java index e46e4ab81f..3368fef9be 100644 --- a/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNoteMenuController.java +++ b/OsmAnd/src/net/osmand/plus/audionotes/AudioVideoNoteMenuController.java @@ -62,7 +62,7 @@ public class AudioVideoNoteMenuController 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); } updateData(); @@ -136,7 +136,7 @@ public class AudioVideoNoteMenuController extends MenuController { if (!mRecording.isPhoto()) { if (mPlugin.isPlaying(mRecording)) { leftTitleButtonController.caption = getMapActivity().getString(R.string.shared_string_control_stop); - leftTitleButtonController.leftIconId = R.drawable.ic_action_rec_stop; + leftTitleButtonController.updateStateListDrawableIcon(R.drawable.ic_action_rec_stop, true); int pos = mPlugin.getPlayingPosition(); String durationStr; if (pos == -1) { @@ -149,14 +149,14 @@ public class AudioVideoNoteMenuController extends MenuController { rightTitleButtonController.visible = false; } else { leftTitleButtonController.caption = getMapActivity().getString(R.string.recording_context_menu_play); - leftTitleButtonController.leftIconId = R.drawable.ic_play_dark; + leftTitleButtonController.updateStateListDrawableIcon(R.drawable.ic_play_dark, true); String durationStr = mRecording.getPlainDuration(accessibilityEnabled); leftTitleButtonController.needRightText = true; leftTitleButtonController.rightTextCaption = "— " + durationStr; } } else { leftTitleButtonController.caption = getMapActivity().getString(R.string.recording_context_menu_show); - leftTitleButtonController.leftIconId = R.drawable.ic_action_view; + leftTitleButtonController.updateStateListDrawableIcon(R.drawable.ic_action_view, true); } }