Merge branch 'master' into issue_7076
# Conflicts: # OsmAnd/res/values/strings.xml
|
@ -1225,7 +1225,9 @@ public class SearchCoreFactory {
|
|||
|
||||
public static class SearchLocationAndUrlAPI extends SearchBaseAPI {
|
||||
|
||||
private static final int OLC_RECALC_DISTANCE_THRESHOLD = 100000; // 100 km
|
||||
private int olcPhraseHash;
|
||||
private LatLon olcPhraseLocation;
|
||||
private ParsedOpenLocationCode cachedParsedCode;
|
||||
private final List<String> citySubTypes = Arrays.asList("city", "town", "village");
|
||||
|
||||
|
@ -1328,6 +1330,9 @@ public class SearchCoreFactory {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (latLon == null && !parsedCode.isFull()) {
|
||||
latLon = parsedCode.recover(phrase.getSettings().getOriginalLocation());
|
||||
}
|
||||
if (latLon != null) {
|
||||
publishLocation(phrase, resultMatcher, lw, latLon);
|
||||
}
|
||||
|
@ -1386,8 +1391,15 @@ public class SearchCoreFactory {
|
|||
return -1;
|
||||
}
|
||||
int olcPhraseHash = p.getUnknownSearchPhrase().hashCode();
|
||||
if (this.olcPhraseHash == olcPhraseHash && this.olcPhraseLocation != null) {
|
||||
double distance = MapUtils.getDistance(p.getSettings().getOriginalLocation(), this.olcPhraseLocation);
|
||||
if (distance > OLC_RECALC_DISTANCE_THRESHOLD) {
|
||||
olcPhraseHash++;
|
||||
}
|
||||
}
|
||||
if (this.olcPhraseHash != olcPhraseHash) {
|
||||
this.olcPhraseHash = olcPhraseHash;
|
||||
this.olcPhraseLocation = p.getSettings().getOriginalLocation();
|
||||
cachedParsedCode = LocationParser.parseOpenLocationCode(p.getUnknownSearchPhrase());
|
||||
}
|
||||
return cachedParsedCode == null ? SEARCH_LOCATION_PRIORITY : SEARCH_MAX_PRIORITY;
|
||||
|
|
|
@ -46,10 +46,10 @@ android {
|
|||
defaultConfig {
|
||||
minSdkVersion System.getenv("MIN_SDK_VERSION") ? System.getenv("MIN_SDK_VERSION").toInteger() : 14
|
||||
targetSdkVersion 26
|
||||
versionCode 330
|
||||
versionCode 340
|
||||
versionCode System.getenv("APK_NUMBER_VERSION") ? System.getenv("APK_NUMBER_VERSION").toInteger() : versionCode
|
||||
multiDexEnabled true
|
||||
versionName "3.3.0"
|
||||
versionName "3.4.0"
|
||||
versionName System.getenv("APK_VERSION")? System.getenv("APK_VERSION").toString(): versionName
|
||||
versionName System.getenv("APK_VERSION_SUFFIX")? versionName + System.getenv("APK_VERSION_SUFFIX").toString(): versionName
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 537 B After Width: | Height: | Size: 424 B |
Before Width: | Height: | Size: 824 B After Width: | Height: | Size: 551 B |
Before Width: | Height: | Size: 552 B After Width: | Height: | Size: 439 B |
Before Width: | Height: | Size: 548 B After Width: | Height: | Size: 445 B |
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 370 B |
Before Width: | Height: | Size: 637 B After Width: | Height: | Size: 522 B |
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 573 B After Width: | Height: | Size: 449 B |
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 566 B After Width: | Height: | Size: 404 B |
Before Width: | Height: | Size: 691 B After Width: | Height: | Size: 568 B |
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 492 B After Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 550 B |
Before Width: | Height: | Size: 609 B After Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 622 B After Width: | Height: | Size: 521 B |
Before Width: | Height: | Size: 711 B After Width: | Height: | Size: 558 B |
Before Width: | Height: | Size: 510 B After Width: | Height: | Size: 401 B |
BIN
OsmAnd/res/drawable-hdpi/ic_action_ufo.png
Normal file
After Width: | Height: | Size: 626 B |
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 425 B |
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 553 B |
Before Width: | Height: | Size: 555 B After Width: | Height: | Size: 443 B |
Before Width: | Height: | Size: 552 B After Width: | Height: | Size: 446 B |
Before Width: | Height: | Size: 452 B After Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 525 B |
Before Width: | Height: | Size: 537 B After Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 575 B After Width: | Height: | Size: 452 B |
Before Width: | Height: | Size: 672 B After Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 694 B After Width: | Height: | Size: 572 B |
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 824 B After Width: | Height: | Size: 550 B |
Before Width: | Height: | Size: 609 B After Width: | Height: | Size: 490 B |
Before Width: | Height: | Size: 624 B After Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 716 B After Width: | Height: | Size: 564 B |
Before Width: | Height: | Size: 514 B After Width: | Height: | Size: 400 B |
BIN
OsmAnd/res/drawable-hdpi/map_action_ufo.png
Normal file
After Width: | Height: | Size: 635 B |
Before Width: | Height: | Size: 657 B After Width: | Height: | Size: 489 B |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 713 B |
Before Width: | Height: | Size: 569 B After Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 453 B |
Before Width: | Height: | Size: 491 B After Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 707 B After Width: | Height: | Size: 590 B |
Before Width: | Height: | Size: 598 B After Width: | Height: | Size: 437 B |
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 495 B |
Before Width: | Height: | Size: 792 B After Width: | Height: | Size: 568 B |
Before Width: | Height: | Size: 614 B After Width: | Height: | Size: 469 B |
Before Width: | Height: | Size: 808 B After Width: | Height: | Size: 637 B |
Before Width: | Height: | Size: 593 B After Width: | Height: | Size: 464 B |
Before Width: | Height: | Size: 502 B After Width: | Height: | Size: 388 B |
Before Width: | Height: | Size: 988 B After Width: | Height: | Size: 705 B |
Before Width: | Height: | Size: 745 B After Width: | Height: | Size: 572 B |
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 483 B |
Before Width: | Height: | Size: 895 B After Width: | Height: | Size: 671 B |
Before Width: | Height: | Size: 529 B After Width: | Height: | Size: 452 B |
BIN
OsmAnd/res/drawable-large-hdpi/map_action_ufo.png
Normal file
After Width: | Height: | Size: 804 B |
Before Width: | Height: | Size: 884 B After Width: | Height: | Size: 727 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 813 B After Width: | Height: | Size: 688 B |
Before Width: | Height: | Size: 841 B After Width: | Height: | Size: 695 B |
Before Width: | Height: | Size: 683 B After Width: | Height: | Size: 580 B |
Before Width: | Height: | Size: 968 B After Width: | Height: | Size: 821 B |
Before Width: | Height: | Size: 769 B After Width: | Height: | Size: 594 B |
Before Width: | Height: | Size: 934 B After Width: | Height: | Size: 706 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 857 B |
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 949 B |
Before Width: | Height: | Size: 813 B After Width: | Height: | Size: 659 B |
Before Width: | Height: | Size: 684 B After Width: | Height: | Size: 572 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1,005 B |
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 871 B |
Before Width: | Height: | Size: 913 B After Width: | Height: | Size: 751 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1,001 B |
Before Width: | Height: | Size: 789 B After Width: | Height: | Size: 675 B |
BIN
OsmAnd/res/drawable-large-xhdpi/map_action_ufo.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 425 B |
Before Width: | Height: | Size: 830 B After Width: | Height: | Size: 553 B |
Before Width: | Height: | Size: 555 B After Width: | Height: | Size: 443 B |
Before Width: | Height: | Size: 552 B After Width: | Height: | Size: 446 B |
Before Width: | Height: | Size: 452 B After Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 525 B |
Before Width: | Height: | Size: 537 B After Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 575 B After Width: | Height: | Size: 452 B |
Before Width: | Height: | Size: 672 B After Width: | Height: | Size: 503 B |
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 694 B After Width: | Height: | Size: 572 B |
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 824 B After Width: | Height: | Size: 550 B |
Before Width: | Height: | Size: 609 B After Width: | Height: | Size: 490 B |
Before Width: | Height: | Size: 624 B After Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 716 B After Width: | Height: | Size: 564 B |
Before Width: | Height: | Size: 514 B After Width: | Height: | Size: 400 B |
BIN
OsmAnd/res/drawable-large/map_action_ufo.png
Normal file
After Width: | Height: | Size: 635 B |
Before Width: | Height: | Size: 427 B After Width: | Height: | Size: 294 B |
Before Width: | Height: | Size: 559 B After Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 328 B After Width: | Height: | Size: 294 B |