From 8b80ca12b2e76947d6edff343cc1bb6e7bec0a90 Mon Sep 17 00:00:00 2001 From: Philipp Hasper <1710255+PhilLab@users.noreply.github.com> Date: Tue, 21 Apr 2026 09:27:23 +0200 Subject: [PATCH] Fix reporting email for images scanned via Intent (#163) When starting the app via "org.fairscan.app.action.SCAN_TO_PDF" and then reporting the last image via createEmailWithImageIntent() the URI creation failed with > java.lang.IllegalArgumentException: Failed to find configured root that > contains /data/data/org.fairscan.app/cache/sessions/097d29ab-f706-4ba2-848a-fea16fb5f41f/sources/1776590719661.jpg The issue was that when launched via SCAN_TO_PDF, images are stored under the cache directory (cache/sessions//sources/), but the FileProvider configuration in file_paths.xml only had a for pdfs/ and for sources/. There was no cache path covering sessions/. --- app/src/main/res/xml/file_paths.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/res/xml/file_paths.xml b/app/src/main/res/xml/file_paths.xml index 763b0d4..abf5af6 100644 --- a/app/src/main/res/xml/file_paths.xml +++ b/app/src/main/res/xml/file_paths.xml @@ -10,4 +10,8 @@ + +