Try fix Issue 2213
This commit is contained in:
parent
410b3caeea
commit
e32e373c1c
1 changed files with 3 additions and 3 deletions
|
@ -119,7 +119,7 @@ public class AlarmInfo implements LocationPoint {
|
||||||
|
|
||||||
public int updateDistanceAndGetPriority(float time, float distance) {
|
public int updateDistanceAndGetPriority(float time, float distance) {
|
||||||
if (distance > 1500) {
|
if (distance > 1500) {
|
||||||
return 0;
|
return Integer.MAX_VALUE;
|
||||||
}
|
}
|
||||||
// 1 level of priorities
|
// 1 level of priorities
|
||||||
if (time < 8 || distance < 100 || type == AlarmInfoType.SPEED_LIMIT) {
|
if (time < 8 || distance < 100 || type == AlarmInfoType.SPEED_LIMIT) {
|
||||||
|
@ -129,10 +129,10 @@ public class AlarmInfo implements LocationPoint {
|
||||||
return type.getPriority();
|
return type.getPriority();
|
||||||
}
|
}
|
||||||
// 2nd level
|
// 2nd level
|
||||||
if (time < 10 || distance < 150) {
|
if (time < 7 || distance < 100) {
|
||||||
return type.getPriority() + AlarmInfoType.MAXIMUM.getPriority();
|
return type.getPriority() + AlarmInfoType.MAXIMUM.getPriority();
|
||||||
}
|
}
|
||||||
return 0;
|
return Integer.MAX_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue