pydio / cells-android-client

Pydio Cells Android Application
7 stars 2 forks source link

Use normal intent for opening files and not force app chooser #70

Open jadedhound opened 1 week ago

jadedhound commented 1 week ago

Currently when opening a file, the app forces the "app chooser" on the user every single time. However as per the docs, this should only be used if its assumed that the users will be choosing a different app every single time, something that is unusual in a file explorer app.

"However, if multiple apps can respond to the intent and the user might want to use a different app each time, you should explicitly show a chooser dialog." - Docs

Instead, the app should just launch the default intent (app picker) which allows them to choose a default app which will be then used (without prompt) in the future. Now there will be moments when they want to chose a different app, in which case we should add a "open with" option for files which will use the force app chooser intent.

Default Intent Open with option Force app chooser
Screenshot_20240622-122503 Screenshot_20240622-122514 Screenshot_20240622-122525