aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNazar <vitaminkuna@gmail.com>2019-10-22 17:33:12 +0300
committerNazar <vitaminkuna@gmail.com>2019-10-22 17:33:12 +0300
commitfdbce3ecf263ddc90dceab2e1f431802b9324ffa (patch)
tree3aae34679de56c844632cf229e0533627c1d99af
parent56b5a0ac083c8c3857e48fe61f9b7aa07c65a958 (diff)
downloadOsmand-fdbce3ecf263ddc90dceab2e1f431802b9324ffa.tar.gz
small fixes
-rw-r--r--OsmAnd/src/net/osmand/plus/settings/DataStorageFragment.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/OsmAnd/src/net/osmand/plus/settings/DataStorageFragment.java b/OsmAnd/src/net/osmand/plus/settings/DataStorageFragment.java
index 31831e3794..802db74758 100644
--- a/OsmAnd/src/net/osmand/plus/settings/DataStorageFragment.java
+++ b/OsmAnd/src/net/osmand/plus/settings/DataStorageFragment.java
@@ -500,6 +500,7 @@ public class DataStorageFragment extends BaseSettingsFragment implements DataSto
private long copiedSize;
private int failedCount;
private long failedSize;
+ private String exceptionMessage;
public MoveFilesToDifferentDirectory(OsmandActionBarActivity activity, File from, File to) {
this.activity = new WeakReference<>(activity);
@@ -561,7 +562,7 @@ public class DataStorageFragment extends BaseSettingsFragment implements DataSto
if (result.booleanValue() && runOnSuccess != null) {
runOnSuccess.run();
} else if (!result.booleanValue()) {
- Toast.makeText(ctx, R.string.shared_string_io_error, Toast.LENGTH_LONG).show();
+ Toast.makeText(ctx, ctx.getString(R.string.shared_string_io_error) + ": " + exceptionMessage, Toast.LENGTH_LONG).show();
}
}
try {
@@ -633,6 +634,7 @@ public class DataStorageFragment extends BaseSettingsFragment implements DataSto
try {
movingFiles(from, to, 0);
} catch (IOException e) {
+ exceptionMessage = e.getMessage();
return false;
}
return true;