Choose browse action

This commit is contained in:
M66B
2018-12-30 10:56:04 +00:00
parent d8c63367c1
commit cb6ccc4a3d

View File

@@ -119,11 +119,7 @@ public class Helper {
if (browse) {
Intent view = new Intent(Intent.ACTION_VIEW, uri);
PackageManager pm = context.getPackageManager();
if (view.resolveActivity(pm) == null)
Toast.makeText(context, context.getString(R.string.title_no_viewer, uri.toString()), Toast.LENGTH_LONG).show();
else
context.startActivity(view);
context.startActivity(getChooser(context, view));
} else {
// https://developer.chrome.com/multidevice/android/customtabs
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();