Fix icon colors after rebuilding context menu
This commit is contained in:
parent
c9c273373d
commit
12add8674c
1 changed files with 2 additions and 4 deletions
|
@ -234,8 +234,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
|
||||||
|
|
||||||
// Progress bar
|
// Progress bar
|
||||||
final ImageView progressButton = (ImageView) view.findViewById(R.id.progressButton);
|
final ImageView progressButton = (ImageView) view.findViewById(R.id.progressButton);
|
||||||
progressButton.setImageDrawable(getIcon(R.drawable.ic_action_remove_dark,
|
progressButton.setImageDrawable(getIcon(R.drawable.ic_action_remove_dark, R.color.ctx_menu_buttons_icon_color));
|
||||||
!nightMode ? R.color.icon_color : R.color.dashboard_subheader_text_dark));
|
|
||||||
progressButton.setOnClickListener(new View.OnClickListener() {
|
progressButton.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
@ -945,8 +944,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
|
||||||
OsmandApplication app = getMyApplication();
|
OsmandApplication app = getMyApplication();
|
||||||
if (app != null && view != null) {
|
if (app != null && view != null) {
|
||||||
final ImageView buttonFavorite = (ImageView) view.findViewById(R.id.context_menu_fav_image_view);
|
final ImageView buttonFavorite = (ImageView) view.findViewById(R.id.context_menu_fav_image_view);
|
||||||
buttonFavorite.setImageDrawable(getIcon(menu.getFavActionIconId(),
|
buttonFavorite.setImageDrawable(getIcon(menu.getFavActionIconId(), R.color.ctx_menu_buttons_icon_color));
|
||||||
!nightMode ? R.color.icon_color : R.color.dashboard_subheader_text_dark));
|
|
||||||
String favActionString = getString(menu.getFavActionStringId());
|
String favActionString = getString(menu.getFavActionStringId());
|
||||||
buttonFavorite.setContentDescription(favActionString);
|
buttonFavorite.setContentDescription(favActionString);
|
||||||
((TextView) view.findViewById(R.id.context_menu_fav_text_view)).setText(favActionString);
|
((TextView) view.findViewById(R.id.context_menu_fav_text_view)).setText(favActionString);
|
||||||
|
|
Loading…
Reference in a new issue