This commit is contained in:
PavelRatushny 2017-05-23 14:53:46 +03:00 committed by Alexey Kulish
parent 2c47511fd7
commit f683a519a6
2 changed files with 12 additions and 8 deletions

View file

@ -437,6 +437,12 @@ public class DownloadIndexesThread {
} else { } else {
dbHelper.update(entry, DatabaseHelper.DOWNLOAD_ENTRY); dbHelper.update(entry, DatabaseHelper.DOWNLOAD_ENTRY);
} }
} else if (o instanceof String) {
String message = (String) o;
// ctx.getString(R.string.shared_string_io_error) +": Interrupted";
if (!message.toLowerCase().contains("interrupted") && !message.equals(app.getString(R.string.shared_string_download_successful))) {
app.showToastMessage(message);
}
} }
} }
downloadInProgress(); downloadInProgress();

View file

@ -676,8 +676,7 @@ public class RoutingHelper {
l.newRouteIsCalculated(newRoute, showToast); l.newRouteIsCalculated(newRoute, showToast);
} }
} }
if (showToast.value) { if (showToast.value && OsmandPlugin.isDevelopment()) {
if (OsmandPlugin.isDevelopment()) {
String msg = app.getString(R.string.new_route_calculated_dist) + ": " String msg = app.getString(R.string.new_route_calculated_dist) + ": "
+ OsmAndFormatter.getFormattedDistance(res.getWholeDistance(), app); + OsmAndFormatter.getFormattedDistance(res.getWholeDistance(), app);
if (res.getRoutingTime() != 0f) { if (res.getRoutingTime() != 0f) {
@ -686,7 +685,6 @@ public class RoutingHelper {
app.showToastMessage(msg); app.showToastMessage(msg);
} }
} }
}
}); });
} }