android icon indicating copy to clipboard operation
android copied to clipboard

[FEATURE REQUEST] Open downloaded PDF when clicking on it

Open mueller-ma opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe. I have several downloaded PDFs in my ownCloud. When I click on them in the file list a new screen opens. It contains:

  • PDF icon
  • File name
  • File metadata like file type, size and date
  • A snackbar with "file already downloaded"

Then I have to click on the overflow menu in the action bar and select "open with" to actually open the file in an external app.

Describe the solution you'd like Open the file in an external app when clicking on it. This seems more useful to me then showing some metadata by default.

Additional context As far as I remember my suggested behavior was implemented until it was removed about end of 2022, but I don't remember the exact version anymore.

TASKS

  • [ ] Research (if needed)
  • [ ] Create branch feature/feature_name
  • [ ] Development tasks
    • [ ] Implement whatever
    • [ ] ...
  • [ ] Code review and apply changes requested
  • [ ] Design test plan
  • [ ] QA
  • [ ] Merge branch feature/feature_name into master

PR

  • App
  • Library (if needed)

mueller-ma avatar Apr 05 '23 07:04 mueller-ma

Thanks for opening a issue @mueller-ma! As you say, this is something we had and we lost on the way 🤔. We'll check it and try to recover it, I think it makes more sense the way you suggest 👍

JuancaG05 avatar Apr 05 '23 08:04 JuancaG05

I would like to take this.

parneet-guraya avatar Jan 16 '24 21:01 parneet-guraya

Go for it @parneet-guraya!

JuancaG05 avatar Jan 17 '24 07:01 JuancaG05

Not sure about the expected behaviour. That means, clicking on the file, it will download (if not) and show the list of available external apps to open, right? same as Open with so, we will no longer show the details view after opening a non-previewable file. IMO, does not make sense to change behaviour only for PDF files.

In fact, i'd check if pdf files could be opened somehow inside the app, since PDF is a very common used format, but this is a different problem.

jesmrec avatar Jan 17 '24 07:01 jesmrec

Opening PDFs inside the ownCloud app fixes the issue for me as well. There're some libraries for that.

same as Open with so, we will no longer show the details view after opening a non-previewable file.

ownCloud could open the app in the default handler (in this case a PDF viewer) when clicking on it in the list. Then add an entry to the context menu called "Details" or similar for the details view.

mueller-ma avatar Jan 17 '24 18:01 mueller-ma