Fix or remove "View it on the web" feature
CaptainBeyondDS8 opened this issue · 1 comments
CaptainBeyondDS8 commented
"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.
CaptainBeyondDS8 commented
For now the option to "View it on the web" is being hidden.