forked from upstream-mirrors/OpenTracks
278f6323f1
When importing tracks from nextcloud, the URI for a file may be something like content://org.nextcloud.documents/tree/7keh3ot7zmiaxecoktv6bfn6gdygt2lg%2F707/document/7keh3ot7zmiaxecoktv6bfn6gdygt2lg%2F745 The URI contains no ".", so getExtension() would return the whole URI as the extension, resulting in an "Unsupported file format" error. To fix this, also pass DocumentFile.getName() to the ImportWorker.