diff --git a/src/plugins/platforms/android/androidcontentfileengine.cpp b/src/plugins/platforms/android/androidcontentfileengine.cpp index 728ecc49003..a6b5944dea1 100644 --- a/src/plugins/platforms/android/androidcontentfileengine.cpp +++ b/src/plugins/platforms/android/androidcontentfileengine.cpp @@ -635,7 +635,7 @@ DocumentFilePtr DocumentFile::parseFromAnyUri(const QString &fileName) const int treeIndex = encodedUri.indexOf(treeType); const int documentIndex = encodedUri.indexOf(documentType); - const int index = encodedUri.lastIndexOf(QUrl::toPercentEncoding(QLatin1String("/"))); + const int index = fileName.lastIndexOf(QLatin1Char('/')); if (index <= treeIndex + treeType.size() || index <= documentIndex + documentType.size()) return fromTreeUri(uri);