This commit is contained in:
Alexey Kulish 2017-03-02 15:17:45 +03:00
parent a063e4f43d
commit 89c6a62756
2 changed files with 3 additions and 2 deletions

View file

@ -210,7 +210,8 @@ public class GPXDatabase {
} }
private String getFileDir(File itemFile) { private String getFileDir(File itemFile) {
return itemFile.getParentFile().equals(context.getAppPath(IndexConstants.GPX_INDEX_DIR)) ? return itemFile.getParentFile() == null ||
itemFile.getParentFile().equals(context.getAppPath(IndexConstants.GPX_INDEX_DIR)) ?
"" : itemFile.getParentFile().getName(); "" : itemFile.getParentFile().getName();
} }