Fix #3750
This commit is contained in:
parent
4f22f23a35
commit
3af82c0c47
2 changed files with 7 additions and 14 deletions
|
@ -437,15 +437,6 @@ 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")) {
|
|
||||||
if (uiActivity == null ||
|
|
||||||
!message.equals(app.getString(R.string.shared_string_download_successful))) {
|
|
||||||
app.showToastMessage(message);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
downloadInProgress();
|
downloadInProgress();
|
||||||
|
|
|
@ -677,14 +677,16 @@ public class RoutingHelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (showToast.value) {
|
if (showToast.value) {
|
||||||
|
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 (OsmandPlugin.isDevelopment() && res.getRoutingTime() != 0f) {
|
if (res.getRoutingTime() != 0f) {
|
||||||
msg += " (" + Algorithms.formatDuration((int) res.getRoutingTime(), app.accessibilityEnabled()) + ")";
|
msg += " (" + Algorithms.formatDuration((int) res.getRoutingTime(), app.accessibilityEnabled()) + ")";
|
||||||
}
|
}
|
||||||
app.showToastMessage(msg);
|
app.showToastMessage(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue