Tapping a downloaded file skips the configured Direct Editing editor (e.g. PDF opens in an external app instead)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
Línea de trabajo
Empieza con OCFileListFragment.onFileClicked() y compara las rutas para archivos descargados y no descargados, especialmente la comprobación existente hasTextEditor(file). Revisa FileDisplayActivity.previewFile() y FileActionHandler.edit() para entender el comportamiento actual de la vista previa y del editor. El trabajo está terminado cuando al tocar un archivo descargado se abre el editor configurado de Direct Editing, si está disponible, mientras que la vista previa sin conexión sigue siendo una alternativa.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
How to use GitHub
- Please use the 👍 reaction to show that you are interested into the same feature.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Is your feature request related to a problem? Please describe.
What happens when I tap a file depends on whether it is already downloaded to the device:
- Not downloaded: if a Direct Editing editor lists the file's mimetype as supported, the app opens that editor in its web view (
OCFileListFragment.openFile(),hasTextEditor()branch). - Downloaded:
onFileClicked()goes topreviewFile()instead and never checks for an editor. For PDFs,previewFile()callsstartPdfPreview(), which prefers third party PDF apps, so the file opens in the system PDF viewer.
So the same tap on the same file opens the server's editor the first time and an external app once the file is cached. My use case: a server app that registers a Direct Editing editor for application/pdf (annotating construction plans). On a tablet, the editor opens fine until the file has been downloaded once; after that, tapping it opens the external PDF viewer. Edit in the file menu still opens the editor (FileActionHandler.edit()), but tapping is what users do.
Reading the code, the same seems to apply to other editors, e.g. a downloaded Markdown file would go to the internal text preview instead of the Text app's editor. I have only observed the PDF case.
Describe the solution you'd like
When a Direct Editing editor lists the mimetype in its (non-optional) mimetypes, tapping a file opens that editor whether or not the file is downloaded. In code: apply the same webViewAvailable && hasTextEditor(file) && !file.isEncrypted check in onFileClicked() before the file.isDown branch (or at the start of previewFile()). Offline, the current preview could stay as the fallback.
Describe alternatives you've considered
- Using Edit from the file menu every time: works, but is not discoverable and differs from the non-downloaded case.
- Uninstalling or changing the default PDF app on the device: then the internal PDF preview opens, still not the editor.
- A setting "Open files with the server editor when available": would also work, but the consistent behaviour above seems simpler.
Additional context
- Observed on a live instance: Nextcloud server 35.0.3, Nextcloud Android app , , Android .
- The editor is registered via
RegisterDirectEditorEventand appears in/ocs/v2.php/apps/files/api/v1/directEditingwithapplication/pdfinmimetypes.
Assisted by ClaudeCode:claude-opus-5-5
- Lenguaje dominante
- Kotlin
- Estrellas
- 5.7k
- Forks
- 2.1k
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 149
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nextcloud/android
-
0. Needs triage enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
nextcloud/android#18094 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
nextcloud/android#17845 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[Bug] Lock owned by another client (e.g. Text app) cannot be unlocked from the appQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
nextcloud/android#17837 · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
0. Needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
nextcloud/android#17533 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
RC 34.1.0-01: Duplicated wording in creation menu — "New" prefix + creator name produces "New New document" ("Neu Neues Dokument")Posiblemente ocupada @ChristianTannheimer la tomó hace 129 días. Abierto0. Needs triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
Todos los issues de nextcloud/android
Issues similares
-
accessibility agent-ready area:android bug fleet
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
level-98/mailcrane#412 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
DojoCodingLabs/hermit#23 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
signalapp/Signal-Android#15148 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día