From 08ab3b073a1348136c69e7d7b3e704dbdc102203 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 10 Apr 2015 19:36:46 +0200 Subject: [PATCH] Update small icons --- .../osmand/plus/activities/FavoritesListFragment.java | 8 +++++--- .../net/osmand/plus/myplaces/AvailableGPXFragment.java | 9 +++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/FavoritesListFragment.java b/OsmAnd/src/net/osmand/plus/activities/FavoritesListFragment.java index 66b7c90a89..1cf96ab59e 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavoritesListFragment.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavoritesListFragment.java @@ -201,12 +201,14 @@ public class FavoritesListFragment extends ListFragment implements SearchActivit TextView distanceText = (TextView) row.findViewById(R.id.distance); ImageView icon = (ImageView) row.findViewById(R.id.favourite_icon); ImageView direction = (ImageView) row.findViewById(R.id.direction); + ImageView giImage= (ImageView)row.findViewById(R.id.group_image); direction.setVisibility(View.VISIBLE); final FavouritePoint favorite = getItem(position); if (!favorite.getCategory().isEmpty()) { - row.findViewById(R.id.group_image).setVisibility(View.VISIBLE); + giImage.setVisibility(View.VISIBLE); + giImage.setImageDrawable(app.getIconsCache().getContentIcon(R.drawable.ic_small_group)); } else { - row.findViewById(R.id.group_image).setVisibility(View.GONE); + giImage.setVisibility(View.GONE); } ((TextView) row.findViewById(R.id.group_name)).setText(favorite.getCategory()); @@ -216,7 +218,7 @@ public class FavoritesListFragment extends ListFragment implements SearchActivit name.setText(getName(favorite)); final CheckBox ch = (CheckBox) row.findViewById(R.id.check_item); - row.findViewById(R.id.favourite_icon).setVisibility(View.VISIBLE); + icon.setVisibility(View.VISIBLE); ch.setVisibility(View.GONE); return row; } diff --git a/OsmAnd/src/net/osmand/plus/myplaces/AvailableGPXFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/AvailableGPXFragment.java index 2655ef4772..ff95b7e6d3 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/AvailableGPXFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/AvailableGPXFragment.java @@ -1325,6 +1325,15 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment { } else { v.findViewById(R.id.read_section).setVisibility(View.VISIBLE); v.findViewById(R.id.unknown_section).setVisibility(View.GONE); + ImageView distanceI = (ImageView) v.findViewById(R.id.distance_icon); + distanceI.setVisibility(View.VISIBLE); + distanceI.setImageDrawable(app.getIconsCache().getContentIcon(R.drawable.ic_small_distance)); + ImageView pointsI = (ImageView) v.findViewById(R.id.points_icon); + pointsI.setVisibility(View.VISIBLE); + pointsI.setImageDrawable(app.getIconsCache().getContentIcon(R.drawable.ic_small_point)); + ImageView timeI = (ImageView) v.findViewById(R.id.time_icon); + timeI.setVisibility(View.VISIBLE); + timeI.setImageDrawable(app.getIconsCache().getContentIcon(R.drawable.ic_small_time)); TextView time = (TextView) v.findViewById(R.id.time); TextView distance = (TextView) v.findViewById(R.id.distance); TextView pointsCount = (TextView) v.findViewById(R.id.points_count);