Fix crash with search navigation
This commit is contained in:
parent
2efb0ac6af
commit
d416ef0a6a
2 changed files with 9 additions and 14 deletions
|
@ -1004,17 +1004,12 @@ public class SearchUICore {
|
|||
String subType2 = a2.getSubType() == null ? "" : a2.getSubType();
|
||||
|
||||
int cmp = 0;
|
||||
|
||||
if (FILTER_DUPLICATE_POI_SUBTYPE.contains(subType1)) {
|
||||
cmp = 1;
|
||||
} else if (FILTER_DUPLICATE_POI_SUBTYPE.contains(subType2)) {
|
||||
cmp = -1;
|
||||
boolean subtypeFilter1 = FILTER_DUPLICATE_POI_SUBTYPE.contains(subType1);
|
||||
boolean subtypeFilter2 = FILTER_DUPLICATE_POI_SUBTYPE.contains(subType2);
|
||||
if (subtypeFilter1 != subtypeFilter2) {
|
||||
// to filter second
|
||||
return subtypeFilter1 ? 1 : -1;
|
||||
}
|
||||
|
||||
if (cmp != 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = c.collator.compare(type1, type2);
|
||||
if (cmp != 0) {
|
||||
return cmp;
|
||||
|
|
Loading…
Reference in a new issue