update progress
This commit is contained in:
parent
93fad04069
commit
d1b0ab1930
1 changed files with 2 additions and 2 deletions
|
@ -877,8 +877,8 @@ public class RoutingHelper {
|
|||
@Override
|
||||
public void run() {
|
||||
if (isRouteBeingCalculated()) {
|
||||
float p = calculationProgress.distanceFromBegin + calculationProgress.distanceFromEnd;
|
||||
float all = calculationProgress.totalEstimatedDistance * 1.5f;
|
||||
float p = Math.max(calculationProgress.distanceFromBegin, calculationProgress.distanceFromEnd);
|
||||
float all = calculationProgress.totalEstimatedDistance * 1.25f;
|
||||
if (all > 0) {
|
||||
int t = (int) Math.min(p * p / (all * all) * 100f, 99);
|
||||
progressRoute.updateProgress(t);
|
||||
|
|
Loading…
Reference in a new issue