From: Soren Stoutner Date: Fri, 8 Feb 2019 20:42:17 +0000 (-0700) Subject: Use the default chooser options for the Open With menu items. https://redmine.stoutn... X-Git-Tag: v2.17~10 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=37a6fcdaa3ed89ca36afd84467d063b93798c4f6;p=PrivacyBrowserAndroid.git Use the default chooser options for the Open With menu items. https://redmine.stoutner.com/issues/375 --- 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: