Fix #3750
This commit is contained in:
parent
2c47511fd7
commit
f683a519a6
2 changed files with 12 additions and 8 deletions
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue