Rename strings and delete unused
This commit is contained in:
parent
693be5c2b9
commit
f90778023e
2 changed files with 7 additions and 4 deletions
|
@ -795,7 +795,7 @@ public class BinaryMapPoiReaderAdapter {
|
||||||
// break;
|
// break;
|
||||||
case OsmandOdb.OsmAndPoiCategories.CATEGORIES_FIELD_NUMBER:
|
case OsmandOdb.OsmAndPoiCategories.CATEGORIES_FIELD_NUMBER:
|
||||||
PoiCategory type = poiTypes.getOtherPoiCategory();
|
PoiCategory type = poiTypes.getOtherPoiCategory();
|
||||||
String subcat = "";
|
String subtype = "";
|
||||||
int cat = codedIS.readUInt32();
|
int cat = codedIS.readUInt32();
|
||||||
int subcatId = cat >> SHIFT_BITS_CATEGORY;
|
int subcatId = cat >> SHIFT_BITS_CATEGORY;
|
||||||
int catId = cat & CATEGORY_MASK;
|
int catId = cat & CATEGORY_MASK;
|
||||||
|
@ -803,10 +803,11 @@ public class BinaryMapPoiReaderAdapter {
|
||||||
type = region.categoriesType.get(catId);
|
type = region.categoriesType.get(catId);
|
||||||
List<String> subcats = region.subcategories.get(catId);
|
List<String> subcats = region.subcategories.get(catId);
|
||||||
if (subcatId < subcats.size()) {
|
if (subcatId < subcats.size()) {
|
||||||
subcat = subcats.get(subcatId);
|
subtype = subcats.get(subcatId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (req.poiTypeFilter.accept(type, subcat)) {
|
subtype = poiTypes.replaceDeprecatedSubtype(type, subtype);
|
||||||
|
if (req.poiTypeFilter.accept(type, subtype)) {
|
||||||
codedIS.skipRawBytes(codedIS.getBytesUntilLimit());
|
codedIS.skipRawBytes(codedIS.getBytesUntilLimit());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
<?xml version="1.0" encoding="utf-8" standalone="no"?><resources/>
|
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||||
|
<resources>
|
||||||
|
</resources>
|
Loading…
Reference in a new issue