Choose browse action

pull/147/head
M66B 6 years ago
parent d8c63367c1
commit cb6ccc4a3d

@ -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();

Loading…
Cancel
Save