From c330fc9e764923402a36661e1e02761797167397 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 24 Jun 2014 08:07:11 +0300 Subject: [PATCH] Added TypedValue for distance size. --- .../plus/routepointsnavigation/RoutePointsActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsActivity.java b/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsActivity.java index 760c02435f..2dfb8c4b1c 100644 --- a/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsActivity.java +++ b/OsmAnd/src/net/osmand/plus/routepointsnavigation/RoutePointsActivity.java @@ -4,6 +4,7 @@ import java.util.ArrayList; import java.util.List; import android.content.Intent; +import android.util.TypedValue; import net.osmand.CallbackWithObject; import net.osmand.data.LatLon; import net.osmand.plus.GPXUtilities; @@ -178,7 +179,7 @@ public class RoutePointsActivity extends OsmandListActivity { holder.name.setTextColor(getResources().getColor(R.color.osmbug_closed)); holder.dateOrDistance.setTextColor(getResources().getColor(R.color.color_unknown)); holder.dateOrDistance.setText(point.getTime()); - holder.dateOrDistance.setTextSize(14); + holder.dateOrDistance.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14); } else { if (point.isNextNavigate()) { @@ -193,7 +194,7 @@ public class RoutePointsActivity extends OsmandListActivity { } holder.name.setTextColor(getResources().getColor(R.color.color_update)); holder.dateOrDistance.setTextColor(getResources().getColor(R.color.color_distance)); - holder.dateOrDistance.setTextSize(20); + holder.dateOrDistance.setTextSize(TypedValue.COMPLEX_UNIT_SP, 20); } return convertView; }