Commit f9d33275 authored by Volker Krause's avatar Volker Krause
Browse files

Fix opening attached documents

The file provider name needs to be all lower-case as it's used in the host
part of a URL. No idea how this worked previously.
parent bec11dbf
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
<provider <provider
android:name="androidx.core.content.FileProvider" android:name="androidx.core.content.FileProvider"
android:authorities="org.kde.itinerary.documentProvider" android:authorities="org.kde.itinerary.documentprovider"
android:exported="false" android:exported="false"
android:grantUriPermissions="true"> android:grantUriPermissions="true">
<meta-data <meta-data
......
...@@ -80,7 +80,7 @@ public class Activity extends QtActivity ...@@ -80,7 +80,7 @@ public class Activity extends QtActivity
{ {
Log.i(TAG, filePath); Log.i(TAG, filePath);
File file = new File(filePath); File file = new File(filePath);
return FileProvider.getUriForFile(this, "org.kde.itinerary.documentProvider", file); return FileProvider.getUriForFile(this, "org.kde.itinerary.documentprovider", file);
} }
/* Try to find attachment URLs from shared content from email applications. /* Try to find attachment URLs from shared content from email applications.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment