From 973b716ada8e40eec5632bd8ab994812ad269513 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Mon, 20 Mar 2017 22:41:20 +0300 Subject: [PATCH] Fix depth contours ui --- OsmAnd/res/layout/two_line_with_images_list_item.xml | 2 ++ OsmAnd/res/values/strings.xml | 1 + OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/OsmAnd/res/layout/two_line_with_images_list_item.xml b/OsmAnd/res/layout/two_line_with_images_list_item.xml index 98d5f32702..1b9d2e6d2c 100644 --- a/OsmAnd/res/layout/two_line_with_images_list_item.xml +++ b/OsmAnd/res/layout/two_line_with_images_list_item.xml @@ -27,6 +27,8 @@ android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_weight="1" + android:paddingTop="6dp" + android:paddingBottom="6dp" android:orientation="vertical"> + Set of maps allows you to see sea depth contour lines. Thank you for purchasing sea depth contours! Depth contours Depth points southern hemisphere diff --git a/OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java b/OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java index 10131a2c77..17a4491967 100644 --- a/OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java +++ b/OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java @@ -179,7 +179,7 @@ public class ItemViewHolder { progressBar.setVisibility(View.GONE); descrTextView.setVisibility(View.VISIBLE); if (indexItem.getType() == DownloadActivityType.DEPTH_CONTOUR_FILE && !depthContoursPurchased) { - descrTextView.setVisibility(View.GONE); + descrTextView.setText(context.getString(R.string.depth_contour_descr)); } else if ((indexItem.getType() == DownloadActivityType.SRTM_COUNTRY_FILE || indexItem.getType() == DownloadActivityType.HILLSHADE_FILE) && srtmDisabled) { if(showTypeInName) {