From cb6ccc4a3d1add4dd734785233f7bc03c5513703 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 30 Dec 2018 10:56:04 +0000 Subject: [PATCH] Choose browse action --- app/src/main/java/eu/faircode/email/Helper.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Helper.java b/app/src/main/java/eu/faircode/email/Helper.java index 97c8c2783a..9457b76e30 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -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();