Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Fix or remove "View it on the web" feature #6

Open
CaptainBeyondDS8 opened this issue Jun 23, 2018 · 1 comment
Open

Fix or remove "View it on the web" feature #6

CaptainBeyondDS8 opened this issue Jun 23, 2018 · 1 comment

Comments

@CaptainBeyondDS8
Copy link
Owner

"View it on the web" feature prompts the user to open the file in an application. It does this by creating an intent and supplying it with data of type */*.

                browserIntent = new Intent(Intent.ACTION_VIEW);
                browserIntent.setDataAndType(greatUri.getUri(), "*/*");
                startActivity(browserIntent);

A number of applications offer to handle this intent, but for some reason, actual browsers are not among them (tested on LineageOS, neither the default browser nor Fennec nor DuckDuckGo browser are available). I'm not even sure it's possible (anymore?) to have a web browser handle an arbitrary content:// URI.

If it's possible it should be fixed such that it tries to open a browser, and if not it should just be removed.

cc https://github.com/vmihalachi/turbo-editor/issues/148

@CaptainBeyondDS8
Copy link
Owner Author

For now the option to "View it on the web" is being hidden.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant