fix(upload-list-adapter): FileUriExposedException - #17418
Conversation
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
|
/backport to stable-34.1.x |
There was a problem hiding this comment.
Pull request overview
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
This PR addresses FileUriExposedException when opening local upload items by switching from file:// URIs to content:// URIs via FileProvider.
Changes:
- Use
FileProvider.getUriForFile(...)and grant read permission when launchingACTION_VIEW. - Refactor upload-item click handling to exit early when the local file exists.
- Centralize unknown MIME-type fallback to
*/*.
馃挕 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
APK file: https://github.com/nextcloud/android/actions/runs/30886239130/artifacts/8883988716 |
|
blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed. |
|
APK file: https://github.com/nextcloud/android/actions/runs/31079227786/artifacts/8959104693 |
Issue