From 56b5a0ac083c8c3857e48fe61f9b7aa07c65a958 Mon Sep 17 00:00:00 2001 From: Nazar Date: Tue, 22 Oct 2019 14:50:24 +0300 Subject: [PATCH] small fixes --- OsmAnd/res/values/strings.xml | 4 ++-- OsmAnd/src/net/osmand/plus/settings/DataStorageFragment.java | 1 + .../src/net/osmand/plus/settings/GlobalSettingsFragment.java | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 6e650fa149..4f6ff08aa5 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -29,8 +29,8 @@ Connection Avoid certain routes and road types Move OsmAnd data files to the new destination?\n%1$s > %2$s - %1$s\t•\t%2$s - Free %1$s GB\t•\tTotal %2$s GB + %1$s • %2$s + Free %1$s GB • Total %2$s GB Enter path to the folder Select folder Paste path to the folder with OsmAnd data diff --git a/OsmAnd/src/net/osmand/plus/settings/DataStorageFragment.java b/OsmAnd/src/net/osmand/plus/settings/DataStorageFragment.java index 96363f4dca..31831e3794 100644 --- a/OsmAnd/src/net/osmand/plus/settings/DataStorageFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/DataStorageFragment.java @@ -256,6 +256,7 @@ public class DataStorageFragment extends BaseSettingsFragment implements DataSto secondPart.setVisibility(View.VISIBLE); String space = getSpaceDescription(item.getDirectory()); if (!space.equals("")) { + space = space.replaceAll(" • ", " • "); tvSummary.setText(space); tvSummary.setVisibility(View.VISIBLE); } else { diff --git a/OsmAnd/src/net/osmand/plus/settings/GlobalSettingsFragment.java b/OsmAnd/src/net/osmand/plus/settings/GlobalSettingsFragment.java index f9acdaef8e..561abc1146 100644 --- a/OsmAnd/src/net/osmand/plus/settings/GlobalSettingsFragment.java +++ b/OsmAnd/src/net/osmand/plus/settings/GlobalSettingsFragment.java @@ -151,6 +151,7 @@ public class GlobalSettingsFragment extends BaseSettingsFragment implements Send String summary = String.format(getString(R.string.data_storage_preference_summary), currentStorage.getTitle(), sTotalUsed); + summary = summary.replaceAll(" • ", " • "); externalStorageDir.setSummary(summary); } else { externalStorageDir.setSummary(currentStorage.getTitle());