Fix gpx file path

This commit is contained in:
max-klaus 2019-10-31 19:21:33 +03:00
parent 86b79266d6
commit a4ff29d8dd

View file

@ -11,6 +11,7 @@ import android.widget.LinearLayout;
import android.widget.TextView;
import net.osmand.GPXUtilities.GPXFile;
import net.osmand.IndexConstants;
import net.osmand.plus.GPXDatabase.GpxDataItem;
import net.osmand.plus.R;
import net.osmand.plus.activities.MapActivity;
@ -51,7 +52,7 @@ public class TracksCard extends BaseCard {
}
private GpxDataItem getDataItem(GPXInfo info) {
return app.getGpxDbHelper().getItem(new File(info.getFileName()));
return app.getGpxDbHelper().getItem(new File(app.getAppPath(IndexConstants.GPX_INDEX_DIR), info.getFileName()));
}
@SuppressLint("DefaultLocale")