Add wikivoyage data
This commit is contained in:
parent
33ebf5822b
commit
94b19557d8
2 changed files with 8 additions and 0 deletions
|
@ -398,6 +398,10 @@ public class LocalIndexHelper {
|
|||
if (fileName.endsWith(IndexConstants.SQLITE_EXT)) {
|
||||
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) {
|
||||
int l = fileName.lastIndexOf('_');
|
||||
if (l == -1) {
|
||||
|
|
|
@ -399,6 +399,10 @@ public class DownloadActivityType {
|
|||
if (fileName.endsWith(IndexConstants.SQLITE_EXT)) {
|
||||
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) {
|
||||
int l = fileName.lastIndexOf('_');
|
||||
if (l == -1) {
|
||||
|
|
Loading…
Reference in a new issue