small fixes

This commit is contained in:
Nazar 2019-10-22 14:50:24 +03:00
parent 78c85efb4e
commit 56b5a0ac08
3 changed files with 4 additions and 2 deletions

View file

@ -29,8 +29,8 @@
<string name="rendering_attr_piste_difficulty_connection_name">Connection</string>
<string name="avoid_in_routing_descr_">Avoid certain routes and road types</string>
<string name="change_data_storage_full_description">Move OsmAnd data files to the new destination?\n%1$s > %2$s</string>
<string name="data_storage_preference_summary">%1$s\t•\t%2$s</string>
<string name="data_storage_space_description">Free %1$s GB\t•\tTotal %2$s GB</string>
<string name="data_storage_preference_summary">%1$s%2$s</string>
<string name="data_storage_space_description">Free %1$s GBTotal %2$s GB</string>
<string name="enter_path_to_folder">Enter path to the folder</string>
<string name="shared_string_select_folder">Select folder</string>
<string name="paste_Osmand_data_folder_path">Paste path to the folder with OsmAnd data</string>

View file

@ -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 {

View file

@ -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());