Skip to content

Open dowloaded files in direct editor, when available - #18157

Open
daniele-verducci wants to merge 2 commits into
masterfrom
fix/open-offline-files-in-direct-editor
Open

daniele-verducci wants to merge 2 commits into
masterfrom
fix/open-offline-files-in-direct-editor

Conversation

@daniele-verducci

@daniele-verducci daniele-verducci commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

This fixes #18152

Alignes downloaded file behavior to the online one.

How to test:
To replicate the user's setup you need a server with a Direct Editing app that registers mimetype application/pdf.
AFAIK, there are no free apps that implement this, and the one used by the user seems very specific.
I used AI to mock an app in a docker Nextcloud install for test purposes.

Repro:

  • Have an instance with a PDF file and a PDF-supporting Direct Editing app
  • Open PDF while online -> PDF opens in Direct Editing app
  • Download PDF -> PDF opens in system PDF viewer

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...owncloud/android/ui/fragment/OCFileListFragment.kt 0.00% 7 Missing ⚠️

📢 Thoughts on this report? Let us know!

Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
@github-actions

Copy link
Copy Markdown

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit 8bb761c
Version 18157
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

@github-actions

Copy link
Copy Markdown

SpotBugs

CategoryBaseNew
Bad practice2222
Correctness4040
Dodgy code106106
Experimental11
Malicious code vulnerability11
Multithreaded correctness1313
Performance1717
Security1515
Total215215

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tapping a downloaded file skips the configured Direct Editing editor (e.g. PDF opens in an external app instead)

1 participant