Add wikivoyage data

This commit is contained in:
Victor Shcherb 2018-04-12 02:09:56 +02:00
parent 33ebf5822b
commit 94b19557d8
2 changed files with 8 additions and 0 deletions

View file

@ -398,6 +398,10 @@ public class LocalIndexHelper {
if (fileName.endsWith(IndexConstants.SQLITE_EXT)) { if (fileName.endsWith(IndexConstants.SQLITE_EXT)) {
return fileName.substring(0, fileName.length() - IndexConstants.SQLITE_EXT.length()); return fileName.substring(0, fileName.length() - IndexConstants.SQLITE_EXT.length());
} }
if (localIndexInfo.getType() == TRAVEL_DATA &&
fileName.endsWith(IndexConstants.BINARY_WIKIVOYAGE_MAP_INDEX_EXT)) {
return fileName.substring(0, fileName.length() - IndexConstants.BINARY_WIKIVOYAGE_MAP_INDEX_EXT.length());
}
if (this == VOICE_DATA) { if (this == VOICE_DATA) {
int l = fileName.lastIndexOf('_'); int l = fileName.lastIndexOf('_');
if (l == -1) { if (l == -1) {

View file

@ -399,6 +399,10 @@ public class DownloadActivityType {
if (fileName.endsWith(IndexConstants.SQLITE_EXT)) { if (fileName.endsWith(IndexConstants.SQLITE_EXT)) {
return fileName.substring(0, fileName.length() - IndexConstants.SQLITE_EXT.length()); return fileName.substring(0, fileName.length() - IndexConstants.SQLITE_EXT.length());
} }
if (indexItem.getType() == WIKIVOYAGE_FILE &&
fileName.endsWith(IndexConstants.BINARY_WIKIVOYAGE_MAP_INDEX_EXT)) {
return fileName.substring(0, fileName.length() - IndexConstants.BINARY_WIKIVOYAGE_MAP_INDEX_EXT.length());
}
if (this == VOICE_FILE) { if (this == VOICE_FILE) {
int l = fileName.lastIndexOf('_'); int l = fileName.lastIndexOf('_');
if (l == -1) { if (l == -1) {