From 37a6fcdaa3ed89ca36afd84467d063b93798c4f6 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Fri, 8 Feb 2019 13:42:17 -0700 Subject: [PATCH] Use the default chooser options for the Open With menu items. https://redmine.stoutner.com/issues/375 --- .../privacybrowser/activities/MainWebViewActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java index 4f15fbc3..48558dcb 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java @@ -2934,7 +2934,7 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook openWithAppIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // Show the chooser. - startActivity(Intent.createChooser(openWithAppIntent, getString(R.string.open_with))); + startActivity(openWithAppIntent); return true; case R.id.open_with_browser: @@ -2948,7 +2948,7 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook openWithBrowserIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // Show the chooser. - startActivity(Intent.createChooser(openWithBrowserIntent, getString(R.string.open_with))); + startActivity(openWithBrowserIntent); return true; case R.id.add_to_homescreen: -- 2.45.2